02-10-2012 04:32 AM
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="diagrams">
<process id="LoanProcess" name="LoanProcess">
<userTask id="processLoanRequestTask" name="Process Loan Request" activiti:assignee="${initiator}">
<extensionElements>
<activiti:formProperty id="ICNO" name="IC Number" type="string" required="true"></activiti:formProperty>
<activiti:formProperty id="amount" name="Loan Amount" type="long" required="true"></activiti:formProperty>
</extensionElements>
</userTask>
<startEvent id="startevent1" name="Start" activiti:initiator="initiator"></startEvent>
<sequenceFlow id="flow2" name="" sourceRef="startevent1" targetRef="processLoanRequestTask"></sequenceFlow>
<endEvent id="endevent1" name="End"></endEvent>
<serviceTask id="checkCredit" name="Check Credit" activiti:class="loan.CheckCredit"></serviceTask>
<sequenceFlow id="flow3" name="" sourceRef="processLoanRequestTask" targetRef="checkCredit"></sequenceFlow>
<userTask id="approveLoanTask" name="Approve Loan" activiti:candidateGroups="management" activiti:formKey="approveLoan.jsp">
<extensionElements>
<activiti:formProperty id="approveLoan" name="Approve Loan?" type="enum" required="true">
<activiti:value id="true" name="Yes"></activiti:value>
<activiti:value id="false" name="No"></activiti:value>
</activiti:formProperty>
</extensionElements>
</userTask>
<exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
<sequenceFlow id="flow7" name="" sourceRef="approveLoanTask" targetRef="exclusivegateway2"></sequenceFlow>
<userTask id="processLoanTask" name="Process Loan" activiti:assignee="${initiator}"></userTask>
<sequenceFlow id="flow9" name="Approved" sourceRef="exclusivegateway2" targetRef="processLoanTask">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${approveLoan == 'true'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow10" name="Reject" sourceRef="exclusivegateway2" targetRef="endevent1">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${approveLoan == 'false'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow11" name="" sourceRef="processLoanTask" targetRef="endevent1"></sequenceFlow>
<sequenceFlow id="flow12" name="" sourceRef="checkCredit" targetRef="exclusivegateway3"></sequenceFlow>
<sequenceFlow id="flow13" name="" sourceRef="exclusivegateway3" targetRef="endevent1">
<extensionElements>
<activiti:executionListener event="take" class="loan.FailCreditListener"></activiti:executionListener>
</extensionElements>
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${result.equals('false')}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow14" name="" sourceRef="exclusivegateway3" targetRef="approveLoanTask">
<extensionElements>
<activiti:executionListener event="take" class="loan.PassCreditListener"></activiti:executionListener>
</extensionElements>
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${result.equals('true')}]]></conditionExpression>
</sequenceFlow>
<exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway"></exclusiveGateway>
</process>
02-12-2012 08:24 PM
05-31-2012 11:37 PM
06-01-2012 03:39 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.