<?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 workflow level variable in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/workflow-level-variable/m-p/287518#M240648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create a custom workflow and looking for way to create workflow level variable to store state of workflow. I am looking for an enum kind of variable with 8 custom states.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to set it in the workflowModel.xml file ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree that I do find "process variable" available in workflow.bpmn file as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script&amp;gt;var scwf_approveCount = 0; var scwf_tpApproved = false;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I would prefer adding workflow level variable in model definition instead of adding enum variable in javascript of workflow definition file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sumit Purohit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 02:04:34 GMT</pubDate>
    <dc:creator>purohitsumit</dc:creator>
    <dc:date>2014-04-15T02:04:34Z</dc:date>
    <item>
      <title>workflow level variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-level-variable/m-p/287518#M240648</link>
      <description>Hi All,I am trying to create a custom workflow and looking for way to create workflow level variable to store state of workflow. I am looking for an enum kind of variable with 8 custom states.Is there a way to set it in the workflowModel.xml file ?I agree that I do find "process variable" available</description>
      <pubDate>Tue, 15 Apr 2014 02:04:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-level-variable/m-p/287518#M240648</guid>
      <dc:creator>purohitsumit</dc:creator>
      <dc:date>2014-04-15T02:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: workflow level variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-level-variable/m-p/287519#M240649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One way of defining a workflow level vairable is as below - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to define a workflow level variable in the custom workflowModel.xml then you can take below approach -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a base type having parent as bpm:workflowTask in custom workflowModel.xml, define the properties for the type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. For all your workflow tasks, instead of having parent as bpm:workflowTask now use the base type you have just defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. The properties you have defined will be now available across all the workflow tasks throughout the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Setting up the values for the property can be controlled through tasklistener classes depending upon your requirement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 04:14:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-level-variable/m-p/287519#M240649</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-15T04:14:00Z</dc:date>
    </item>
  </channel>
</rss>

