01-21-2013 02:11 AM
<process id="myFILE">
<startEvent id="start">
<extensionElements>
<activiti:formProperty id="stname" name="St. name"
required="true" type="string" />
</extensionElements>
</startEvent>
<sequenceFlow id="flow114" sourceRef="start" targetRef="createRequest"></sequenceFlow>
<serviceTask id="createRequest" name="Create Request"
activiti:class="org.process1.CreateStApp"></serviceTask>
…
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:candidateGroups="Adv">
<extensionElements>
<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" />
</activiti:formProperty>
</extensionElements>
</userTask>
<sequenceFlow id="flow115" sourceRef="decideToBeABC" targetRef="XORAAdOrNot"></sequenceFlow>
<!– XOR requestAccepted or not –>
<exclusiveGateway id="XORAAdOrNot" />
<sequenceFlow id="flow63" name="Adv" sourceRef="XORAAdOrNot"
targetRef="sendInf">
<conditionExpression xsi:type="tFormalExpression">${requestAccepted== true}
</conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow69" name="No Adv" sourceRef="XORAAdOrNot"
targetRef="furtherrr">
<conditionExpression xsi:type="tFormalExpression">${requestAccepted== false}
</conditionExpression>
</sequenceFlow>
…
01-21-2013 03:07 AM
01-28-2013 03:58 AM
public class TenMinuteAND {
@Rule
@Test
@Deployment(resources={"FinancialReportProcess.bpmn20.xml"})
public void startFormSubmit() {
ProcessEngine processEngine = ProcessEngineConfiguration
.createStandaloneProcessEngineConfiguration()
.buildProcessEngine();
RuntimeService runtimeService = processEngine.getRuntimeService();
ProcessInstance pi = runtimeService.startProcessInstanceByKey("financialReport");
TaskService taskService = processEngine.getTaskService();
Task task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();
01-28-2013 04:20 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.