i use a IF-Statement in BPM but without success, i am not sure if it works like how i use it:
IF(DO_Context = "A",getPrincipals(myDO_Context),getPrincipal(myDO_Context))
In one case i have only one principal in other case i have multi principals. The action depends on DO_Context.
Is that possible? If i use only the methods it works but not with the IF-Statement.
I try it with string-equal(...) but unfortunately it does'n work.
I try also a simple operation like 1=1 without success.
IF( 1=1, getPrincipals(DO_BANF_Structure/genehmiger/rcdID),getPrincipal(DO_Employee/rcdCurrentUser))
If i use only getPrincipals(myDO_Context) it works.
I think the problem is that the IF-Statement only works with identical returnvalues, because
if i use the same returnvalue for "then" and "else" it works:
IF( true,getPrincipals(...) ,getPrincipals(...) ) <-- works
But if i use different returnvalues for "then" and "else" i get no result:
IF( true,getPrincipals(...) ,getPrincipal(...) ) <---don't work
My purpose is to bind the owner of a Human Task either to getPrincipals() or getPrincipal(). How would you realize this?
Edited by: Sid on Dec 16, 2010 11:49 AM