how can i make a condition for an if statement to be passed and evaluated at run time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2017 07:44 AM
i have an if condition, i need to evaluate this condition based on the condition selected by the user
if user chooses the condition
A="Add" AND B="User Account" AND C="Remote", this condition needs to be passed to the if condition in the workflow and gets evaluated as
if(current.variables.A=="Add" && current.variables.B=="User Account" && current.variables.C=="Remote")
if user chooses,
(A="Add" OR A=="Modify") AND (B="User Account" OR B="windows account" ) AND (C="Remote" OR C="Local") , this condition needs to be passed to the if condition in the workflow and gets evaluated as
if((current.variables.A=="Add" || current.variables.A=="Modify") && (current.variables.B=="User Account" || current.variables.B=="windows account")&& (current.variables.C=="Remote" || current.variables.C=="Local"))
- Labels:
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2017 11:53 AM
actually the workflow is same but this workflow is been used in multiple places / catalog item. but user updates the criteria in different condition builder form. based on the condition it has to evaluate the expression in the if condition. for this scenario, we can't use record producer