AnsweredAssumed Answered

jump to a Task in a test

Question asked by tomi87 on Jan 21, 2013
Latest reply on Jan 28, 2013 by frederikheremans1
I want to write a test for a task in the middle of a bpmn20.xml file.
At first I want to enter some values in the beginning of the  bpmn20.xml file and then jump to my task wich I want to test.
How should I start with the test, that I can direct jump to my task?
And is it possible ?

For example:
my  bpmn20.xml file:
<process id="myFILE">
      <startEvent id="start">
            <activiti:formProperty id="stname" name="St. name"
               required="true" type="string" />
      <sequenceFlow id="flow114" sourceRef="start" targetRef="createRequest"></sequenceFlow>
      <serviceTask id="createRequest" name="Create Request"

other Tasks which I want to skip (inclusive some other exclusive gateways)

Here I want to start my Test:

   <userTask id="decideToBeABC" name="decide to be ABC"
         <activiti:formProperty id="stname" name="St. name"
            expression="${stAppInfo.stname}" writable="false" />
         <activiti:formProperty id="requestAccepted"
            name="Do you accepted this request?" required="true" type="enum">
            <activiti:value id="true" name="Yes" />
            <activiti:value id="false" name="No" />
      <sequenceFlow id="flow115"  sourceRef="decideToBeABC" targetRef="XORAAdOrNot"></sequenceFlow>
<!– XOR requestAccepted or not –>
      <exclusiveGateway id="XORAAdOrNot"  />
      <sequenceFlow id="flow63" name="Adv" sourceRef="XORAAdOrNot"
         <conditionExpression xsi:type="tFormalExpression">${requestAccepted== true}
      <sequenceFlow id="flow69" name="No Adv" sourceRef="XORAAdOrNot"
         <conditionExpression xsi:type="tFormalExpression">${requestAccepted== false}