08-26-2011 03:01 PM
09-05-2011 11:56 AM
<?xml version="1.0" encoding="UTF-8"?>
<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
mgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns
mgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.softwasa.com">
<process id="CondPagtoWorkflow" name="Workflow de Condição de Pagamento">
<startEvent id="startevent1" name="Start"></startEvent>
<scriptTask id="verificaDiasParcela" name="Verifica Dias Parcela" scriptFormat="groovy">
<script><![CDATA[if (entity != null) {
for (condPagDia in entity.getSwCondPagamentoDiaCollection()) {
if (condPagDia.getQtdeDiasPagto().intValue() > Integer.valueOf(qtdeDiasMaximo).intValue()) {
swCondPagamentoService.changeTipoParcela(condPagDia);
}
}
}]]></script>
</scriptTask>
<sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="verificaDiasParcela"></sequenceFlow>
<userTask id="aprovarCondPagto" name="Aprovar" activiti:candidateGroups="${normalGroup}"></userTask>
<sequenceFlow id="flow2" name="" sourceRef="verificaDiasParcela" targetRef="aprovarCondPagto"></sequenceFlow>
<endEvent id="endevent1" name="End"></endEvent>
<sequenceFlow id="flow3" name="" sourceRef="aprovarCondPagto" targetRef="endevent1"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_CondPagtoWorkflow">
<bpmndi:BPMNPlane bpmnElement="CondPagtoWorkflow" id="BPMNPlane_CondPagtoWorkflow">
<bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
<omgdc:Bounds height="35" width="35" x="72" y="157"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="verificaDiasParcela" id="BPMNShape_verificaDiasParcela">
<omgdc:Bounds height="55" width="141" x="180" y="147"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="aprovarCondPagto" id="BPMNShape_aprovarCondPagto">
<omgdc:Bounds height="55" width="105" x="380" y="147"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
<omgdc:Bounds height="35" width="35" x="570" y="157"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="107" y="174"></omgdi:waypoint>
<omgdi:waypoint x="180" y="174"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="321" y="174"></omgdi:waypoint>
<omgdi:waypoint x="380" y="174"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
<omgdi:waypoint x="485" y="174"></omgdi:waypoint>
<omgdi:waypoint x="570" y="174"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
09-06-2011 04:03 AM
09-06-2011 08:21 AM
09-06-2011 08:52 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.