on 12-15-2010 8:25 PM
Hi everybody,
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.
regards,
Sid
maybe this is better
IF(string-equal(DO_Context, "A"),getPrincipals(myDO_Context),getPrincipal(myDO_Context))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
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.
Any ideas?
regards,
Sid
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?
regards,
Sid
Edited by: Sid on Dec 16, 2010 11:49 AM
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.