Variable or default value

Post Reply
User avatar
Terkelsen
Advanced member
Posts: 336
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Variable or default value

Post by Terkelsen »

I want to use a variable to set a certain property. The variable is in the metadata from a checkpoint earlier in the flow. That part is easy ;)

However, the metadata field that supplies this variable is a subfield of another field. The parent field is of the type "No-yes list". If the parent field is "Yes" I can set a default value for the subfield and that will work as the variable, I look for in the property field. But if the value of the parent field is "No" (false) there will be no value in the subfield and the job will fail.

Is there any way to choose the variable if it is present and if it is not then use a default value?

In real life I want to set the Griffin property "Trigger after n minutes" to a variable value. In the checkpoint, that is in front of Griffin, there is a metadata field called "Advanced options". This a boolean (No-yes list). If it is true a field where you can choose the amount of minutes will be visible. If it is false, that field will be hidden.

So the question is: will it be possible to use the chosen amount of minutes if it is available and to use a default value if it is not?
r.zegwaard
Member
Posts: 102
Joined: Fri Jul 08, 2011 10:31 am
Location: The Netherlands

Re: Variable or default value

Post by r.zegwaard »

Hi,

I think this is quite simple and even possible in the configuration of the submit-point ;)
Add a second child-field that is triggered by the "No" value of the parent.
Set the default value for this field.
Then set "Display metadata filed" to "No"

Now you will always have a field "Minutes"

Success

Robert
yixnmsMtSQ.png
yixnmsMtSQ.png (36.05 KiB) Viewed 5200 times
User avatar
Terkelsen
Advanced member
Posts: 336
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: Variable or default value

Post by Terkelsen »

Thanks r.zegwaard! That indeed was simple but very clever :idea: ;) I didn't think of the idea with two different fields with the same name :roll:
Post Reply