AnsweredAssumed Answered

result variable type in conditionexpression

Question asked by tomas on Apr 20, 2013
Latest reply on Apr 28, 2013 by tomas
Hi!
i'm sorry if my following quistion is stupid or answer is too obvious, but i`m new to activiti and i was not able to find solution …
i have java class, which returns abstract Result class - and two possible Result descendants OKResult and ErrorResult. And my question is: how can i make conditionExpression in connection, where will be checked dataType of some variable?

i have serviceTask calling some springBean methid, which returns Result with resultVariable set and i need something like
${result instanceof ResultOK} and ${result instanceof ResultError} on two following connections

Thanks in advance
Tomas

Outcomes