<?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: Query regarding statuses [Process,Task,Custom] in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/query-regarding-statuses-process-task-custom/m-p/11497#M5094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sonali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, at a conceptual level what you're asking for certainly makes sense - but also consider that, when using a BPM engine more or less 'correctly', those things should be indicated simply by viewing the current process step in the execution context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take the following workflow for example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/13299_pastedImage_1.png" style="width: 620px; height: 226px;" /&gt;&lt;/P&gt;&lt;P&gt;There are a couple of notable things:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Process Diagram is clearly drawn.&lt;UL&gt;&lt;LI&gt;This allows for a regular user to view the diagram.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The Task names are coherently labeled and distinguishable.&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;This allows a regular user to understand what is happening, even though you may be doing some complex things under the covers.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The Flow arrows are actually labeled.&lt;UL&gt;&lt;LI&gt;which allows you to query on those names in the historical database.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you view the process execution, there isn't really a need for a process status. You should be able to look at the current task and say: "Okay, so we're currently clarifying the invoice for the customer", and you'll be able to react to that. While statuses could be helpful and useful; in my mind, that notion deters from the original intention of BPMN, and BPM engines - which is to clearly establish an executable process that can be understood by both the developers and the business.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add as much custom logic as you need on the backend, but if you name your steps coherently and in a way that clearly lays out your intentions, a regular business user should be able to understand exactly what is happening and where the process execution is currently sitting. You could honestly display the current task that a process is on, and that would be sufficient to give someone an idea of what is happening.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyway:&lt;/P&gt;&lt;P&gt;As for fetching processes that are "In Progress" or given a certain status; well, in Activiti, a process is still 'running' unless it has an&amp;nbsp;&lt;EM&gt;END_TIME_&amp;nbsp;&lt;/EM&gt;set in the database - so you could simply query for all processes without an&amp;nbsp;&lt;EM&gt;END_TIME_&amp;nbsp;&lt;/EM&gt;set. And for the custom status queries, simply query for tasks given a certain name, or processes that are currently on a given task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&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>Fri, 14 Apr 2017 18:22:27 GMT</pubDate>
    <dc:creator>jearles</dc:creator>
    <dc:date>2017-04-14T18:22:27Z</dc:date>
    <item>
      <title>Query regarding statuses [Process,Task,Custom]</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-regarding-statuses-process-task-custom/m-p/11496#M5093</link>
      <description>Hi Team,I have few queries regarding process statues, task statues, custom statues...I have listed down the requirement,1. fetch all processes as well as tasks whose status="In Progress"2. Ability to add custom statuses. For example status workflow for a process can be&amp;nbsp;e.g.Started-&amp;gt;InProgress-&amp;gt;</description>
      <pubDate>Fri, 14 Apr 2017 05:15:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-regarding-statuses-process-task-custom/m-p/11496#M5093</guid>
      <dc:creator>sonalik</dc:creator>
      <dc:date>2017-04-14T05:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding statuses [Process,Task,Custom]</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-regarding-statuses-process-task-custom/m-p/11497#M5094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sonali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, at a conceptual level what you're asking for certainly makes sense - but also consider that, when using a BPM engine more or less 'correctly', those things should be indicated simply by viewing the current process step in the execution context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take the following workflow for example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/13299_pastedImage_1.png" style="width: 620px; height: 226px;" /&gt;&lt;/P&gt;&lt;P&gt;There are a couple of notable things:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Process Diagram is clearly drawn.&lt;UL&gt;&lt;LI&gt;This allows for a regular user to view the diagram.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The Task names are coherently labeled and distinguishable.&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;This allows a regular user to understand what is happening, even though you may be doing some complex things under the covers.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The Flow arrows are actually labeled.&lt;UL&gt;&lt;LI&gt;which allows you to query on those names in the historical database.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you view the process execution, there isn't really a need for a process status. You should be able to look at the current task and say: "Okay, so we're currently clarifying the invoice for the customer", and you'll be able to react to that. While statuses could be helpful and useful; in my mind, that notion deters from the original intention of BPMN, and BPM engines - which is to clearly establish an executable process that can be understood by both the developers and the business.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add as much custom logic as you need on the backend, but if you name your steps coherently and in a way that clearly lays out your intentions, a regular business user should be able to understand exactly what is happening and where the process execution is currently sitting. You could honestly display the current task that a process is on, and that would be sufficient to give someone an idea of what is happening.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyway:&lt;/P&gt;&lt;P&gt;As for fetching processes that are "In Progress" or given a certain status; well, in Activiti, a process is still 'running' unless it has an&amp;nbsp;&lt;EM&gt;END_TIME_&amp;nbsp;&lt;/EM&gt;set in the database - so you could simply query for all processes without an&amp;nbsp;&lt;EM&gt;END_TIME_&amp;nbsp;&lt;/EM&gt;set. And for the custom status queries, simply query for tasks given a certain name, or processes that are currently on a given task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&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>Fri, 14 Apr 2017 18:22:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-regarding-statuses-process-task-custom/m-p/11497#M5094</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-04-14T18:22:27Z</dc:date>
    </item>
  </channel>
</rss>

