<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:  how to  integrate ExclusiveGateway , EndEvent and other workflow objects using java to create own Model in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15282#M6754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you are asking for is how to actually create a flow rather than just a bunch of flow elements.&lt;/P&gt;&lt;P&gt;First, create a set of flow elements in the same way you create a start event and user task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the flow elements, you "wire" them together using something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;protected SequenceFlow createSequenceFlow(String from, String to) {&lt;BR /&gt; SequenceFlow flow = new SequenceFlow();&lt;BR /&gt; flow.setSourceRef(from);&lt;BR /&gt; flow.setTargetRef(to);&lt;BR /&gt; return flow;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt; process&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;addFlowElement(createSequenceFlow(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;start&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;task3&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Now, the create an exclusive gateway, it is the same process:&lt;BR /&gt;&lt;BR /&gt;ExclusiveGateway gw = new ExclusiveGateway();&lt;BR /&gt;gw.setDefaultFlow("aSequenceFlowName");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;gw.setId("ExGW");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Now, when the "leave" method is called, the exclusive gateway behavior will be inherited.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;You will need to add conditions to the outgoing transitions (sequence flows).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Hope this is what you were after.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Greg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2017 20:03:19 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-04-19T20:03:19Z</dc:date>
    <item>
      <title>how to  integrate ExclusiveGateway , EndEvent and other workflow objects using java to create own Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15279#M6751</link>
      <description>I'm working on a workflow project using Activiti and i'm wondering if &amp;nbsp;there is any helpful doc where i can find how to create object such as ExclusiveGateway , EndEvent &amp;nbsp;... using java not the XML representation</description>
      <pubDate>Wed, 19 Apr 2017 12:45:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15279#M6751</guid>
      <dc:creator>ilyass_act</dc:creator>
      <dc:date>2017-04-19T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re:  how to create object such as ExclusiveGateway , EndEvent  ... using java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15280#M6752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ilyasse,&lt;BR /&gt;&lt;BR /&gt;What is the particular use case that you're looking to solve doing this? Generally speaking within BPMN, the process is intended to be pretty structured from the get-go, meaning that the gateways and end events are already created prior to running any Java code along side the process instance.&lt;BR /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:10:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15280#M6752</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-04-19T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re:  how to create object such as ExclusiveGateway , EndEvent  ... using java</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15281#M6753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration()&lt;BR /&gt; .setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE)&lt;BR /&gt; .setJdbcUrl("jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000")&lt;BR /&gt; .buildProcessEngine();&lt;/P&gt;&lt;P&gt;RuntimeService runtimeService = processEngine.getRuntimeService();&lt;BR /&gt; RepositoryService repositoryService = processEngine.getRepositoryService();&lt;BR /&gt; TaskService taskService = processEngine.getTaskService();&lt;/P&gt;&lt;P&gt;// 1. Build up the model from scratch&lt;BR /&gt; BpmnModel model = new BpmnModel();&lt;BR /&gt; org.activiti.bpmn.model.Process process = new org.activiti.bpmn.model.Process();&lt;BR /&gt; model.addProcess(process);&lt;BR /&gt; process.setId("my-process");&lt;/P&gt;&lt;P&gt;process.addFlowElement(createStartEvent());&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;process.addFlowElement(createUserTask("task3", "Thirds task","ilyass" ));&lt;/P&gt;&lt;P&gt;new BpmnAutoLayout(model).execute();&lt;/P&gt;&lt;P&gt;Deployment deployment = repositoryService.createDeployment()&lt;BR /&gt; .addBpmnModel("dynamic-model.bpmn", model).name("Dynamic process deployment").deploy();&lt;/P&gt;&lt;P&gt;ProcessInstance processInstance =runtimeService&lt;BR /&gt; .startProcessInstanceByKey("my-process");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&amp;gt; create StartEvent :&lt;/P&gt;&lt;P&gt;public static StartEvent createStartEvent(){&lt;BR /&gt; StartEvent startEvent = new StartEvent();&lt;BR /&gt; startEvent.setId("start");&lt;BR /&gt; return startEvent;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i want to do is to create other Workflow component like ExclusiveGateway , and then Bind my process to my JSF pages &amp;nbsp;[if you have any idea how to do that Please help]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:23:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15281#M6753</guid>
      <dc:creator>ilyass_act</dc:creator>
      <dc:date>2017-04-19T16:23:48Z</dc:date>
    </item>
    <item>
      <title>Re:  how to  integrate ExclusiveGateway , EndEvent and other workflow objects using java to create own Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15282#M6754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you are asking for is how to actually create a flow rather than just a bunch of flow elements.&lt;/P&gt;&lt;P&gt;First, create a set of flow elements in the same way you create a start event and user task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the flow elements, you "wire" them together using something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;protected SequenceFlow createSequenceFlow(String from, String to) {&lt;BR /&gt; SequenceFlow flow = new SequenceFlow();&lt;BR /&gt; flow.setSourceRef(from);&lt;BR /&gt; flow.setTargetRef(to);&lt;BR /&gt; return flow;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt; process&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;addFlowElement(createSequenceFlow(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;start&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;task3&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Now, the create an exclusive gateway, it is the same process:&lt;BR /&gt;&lt;BR /&gt;ExclusiveGateway gw = new ExclusiveGateway();&lt;BR /&gt;gw.setDefaultFlow("aSequenceFlowName");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;gw.setId("ExGW");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Now, when the "leave" method is called, the exclusive gateway behavior will be inherited.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;You will need to add conditions to the outgoing transitions (sequence flows).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Hope this is what you were after.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Greg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 20:03:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15282#M6754</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-04-19T20:03:19Z</dc:date>
    </item>
    <item>
      <title>Re:  how to  integrate ExclusiveGateway , EndEvent and other workflow objects using java to create own Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15283#M6755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any special Doc where i can find this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 07:47:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15283#M6755</guid>
      <dc:creator>ilyass_act</dc:creator>
      <dc:date>2017-04-20T07:47:48Z</dc:date>
    </item>
    <item>
      <title>Re:  how to  integrate ExclusiveGateway , EndEvent and other workflow objects using java to create own Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15284#M6756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only the source code.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 11:37:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15284#M6756</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-04-20T11:37:22Z</dc:date>
    </item>
    <item>
      <title>Re:  how to  integrate ExclusiveGateway , EndEvent and other workflow objects using java to create own Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15285#M6757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Link to the source code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 12:39:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15285#M6757</guid>
      <dc:creator>ilyass_act</dc:creator>
      <dc:date>2017-04-20T12:39:24Z</dc:date>
    </item>
    <item>
      <title>Re:  how to  integrate ExclusiveGateway , EndEvent and other workflow objects using java to create own Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15286#M6758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti" title="https://github.com/Activiti/Activiti" rel="nofollow noopener noreferrer"&gt;GitHub - Activiti/Activiti: Activiti is a light-weight workflow and Business Process Management (BPM) Platform targeted …&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 12:42:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15286#M6758</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-04-20T12:42:04Z</dc:date>
    </item>
    <item>
      <title>Re:  how to  integrate ExclusiveGateway , EndEvent and other workflow objects using java to create own Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15287#M6759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 12:53:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-integrate-exclusivegateway-endevent-and-other-workflow/m-p/15287#M6759</guid>
      <dc:creator>ilyass_act</dc:creator>
      <dc:date>2017-04-20T12:53:42Z</dc:date>
    </item>
  </channel>
</rss>

