Last active
July 24, 2018 19:32
-
-
Save adolfobrunno/2e32a1fabc609f898b7b28a9d6233567 to your computer and use it in GitHub Desktop.
Novos elementos a serem implementados
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bpmn:startEvent id="StartEvent_1"> | |
<bpmn:extensionElements> | |
<audora:startEvent> | |
<audora:param name="status" type="INT" value="1" /> | |
<audora:param name="oculto" type="BOOLEAN" value="true" /> | |
<audora:param name="id" type="INT" value="4800" /> | |
<audora:param name="novoStatus" type="INT" value="2"/> | |
</audora:startEvent> | |
</bpmn:extensionElements> | |
<bpmn:outgoing>SequenceFlow_1hrj4kb</bpmn:outgoing> | |
</bpmn:startEvent> | |
<bpmn:sequenceFlow id="SequenceFlow_1jrkgtb" sourceRef="ExclusiveGateway_1kdwslx" targetRef="Task_1unm6yu"> | |
<bpmn:extensionElements> | |
<audora:sequenceFlow> | |
<audora:condition operator="AND"> <!-- Esse condition já existia, vai precisar ser alterado --> | |
<audora:check varRef="status" value="1" signal="=" /> | |
<audora:check varRef="oculto" value="true" signal="=" /> | |
</audora:condition> | |
</audora:sequenceFlow> | |
</bpmn:extensionElements> | |
</bpmn:sequenceFlow> | |
<!-- ServiceTask do tipo SET --> | |
<bpmn:serviceTask id="Task_026zql1" name="Passo 2 "> | |
<bpmn:incoming>SequenceFlow_0atbdq3</bpmn:incoming> | |
<bpmn:outgoing>SequenceFlow_0k7lpi2</bpmn:outgoing> | |
<bpmn:extensionElements> | |
<audora:serviceTask serviceType="SET" returnType="VOID"> | |
<audora:set> | |
<audora:param name="ato" path="version" value="$novoStatus" type="INT"/> | |
<audora:param name="ato" path="andamento" value="teste" type="STRING"/> | |
</audora:set> | |
</audora:serviceTask> | |
</bpmn:extensionElements> | |
</bpmn:serviceTask> | |
<!-- ServiceTask do tipo ACTION --> | |
<audora:serviceTask serviceType="ACTION" returnVar="resultado" returnType="BOOLEAN"> | |
<audora:action ref="atom.application.action.workflow.SalvarBean"> | |
<audora:param name="module" type="STRING" value="ServicoRealizado" index="0" /> | |
<audora:param ref="ato" index="1" /> | |
</audora:action> | |
</audora:serviceTask> | |
<!-- ServiceTask do tipo ARRAY_POP --> | |
<audora:serviceTask serviceType="ARRAY_POP" returnVar="bean" returnType="BEAN"> | |
<audora:arrayPop arrayRef="beans" index="$index" /> | |
</audora:serviceTask> | |
<!-- ScriptTask do tipo ARRAY_PUSH --> | |
<audora:serviceTask serviceType="ARRAY_PUSH" returnType="VOID"> | |
<audora:arrayPush arrayRef="novosBeans" varRef="bean" /> | |
</audora:serviceTask> | |
<!-- ScriptTask do tipo GET_REPORT --> | |
<audora:serviceTask returnVar="beans" returnType="LIST" serviceType="GET_REPORT"> | |
<audora:getReport bean="ServicoRealizado" esb="false"> | |
<audora:searchSpecs maxResult="10" sortBy="id" order="ASC"> | |
<audora:filters> | |
<audora:filter attribute="status" value="$status" signal="=" /> | |
</audora:filters> | |
</audora:searchSpecs> | |
</audora:getReport> | |
</audora:serviceTask> |
A serviceTask pode ter vários serviceType. Coloquei primeiro o tipo SET que já está fechado. Vou adicionando mais aos poucos. A princípio, os tipos são: SET, GET_REPORT, ACTION e INCREMENT. Vou disponibilizar uma ação para retornar esses tipos.
A serviceTask do tipo ACTION deve listar as ações disponíveis para serem executadas. Também irei criar uma lista de ações possíveis, bem como os parâmetros necessários.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Os tipos possíveis por enquanto são: INT, BOOLEAN, STRING, DOUBLE, VOID e BEAN.