AnsweredAssumed Answered

Which api can be used to get sequence flow name?

Question asked by annoycn on May 31, 2011
Latest reply on Jun 1, 2011 by ronald.van.kuijk
I wanna get sequence flow name attached to the task in my code, for example:

<userTask id="usertask1" name="User Task" activiti:assignee="johnny"></userTask>
<sequenceFlow id="flow4" name="approve" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
<sequenceFlow id="flow6" name="reject" sourceRef="usertask1" targetRef="usertask3"></sequenceFlow>

i need a method like this searchSequenceFlowList(String taskid), when i call this method using 'usertask1' as the param,
i can get a List contains flow4 and flow6, and importantly, i need the sequence flow's name.

Anyone can tell me if there is a method like that in the Activiti Engine?

Thanks.

Outcomes