I want to use the value of a custom field (Typ:enumeration) as a condtion for a workflow action.
That's my script:
Code: Select all
var transitionPermitted = false;
var workItem = workflowContext.getWorkItem();
if(workItem.getvalue("feasible")=="yes") transitionPermitted = true;
The condition works, when I use "String" as Field-Type. As soon as i choose "Enum" it doesn't work.
Could anyone help me with that issue?
Thank you very much in advance!!