<?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: Best way to make variables of processes configurable in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87454#M59226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What about using services that expose that "admin configuration" in Activiti? You can lug in your own beans/services in activiti, so you can access them in, for example, expressions in a gateway. This way, you should have a sequence-flow condition like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt; &amp;lt;sequenceFlow sourceRef="decisionGateway" targetRef="pathA"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${adminService.getProperty('takePathA') == true}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 10:40:31 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2012-10-29T10:40:31Z</dc:date>
    <item>
      <title>Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87449#M59221</link>
      <description>Hello,we use Activiti in our Product and we want to be able to declare properties in the process definition which can later be changed by the admin user using our UI.Example: We have a simple process:start&amp;nbsp; -&amp;gt;&amp;nbsp; Do something (Service Task) -&amp;gt;&amp;nbsp; Do something else (Service Task) -&amp;gt;&amp;nbsp; endWe want</description>
      <pubDate>Wed, 24 Oct 2012 16:07:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87449#M59221</guid>
      <dc:creator>thilka</dc:creator>
      <dc:date>2012-10-24T16:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87450#M59222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, that feature is currently not in Activiti. But you are not the first to ask … so could you create a Jira with the feature request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also: can't you use a start form to provide the details? And have the form definition configurable by the admin? That way you can specify which variables are mandatory, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 08:23:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87450#M59222</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-25T08:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87451#M59223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with your solution is that the mandatory fields have to be entered at runtime. But I want some mandatory configuration properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. The process looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;start&amp;nbsp; -&amp;gt;&amp;nbsp; go (direction)&amp;nbsp; -&amp;gt;&amp;nbsp; end&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when uploading the process, I want the admin to decide, which direction to go to (left, right). We already have the ability to change the properties during configuration time (we added another abstraction layer), but there is no way to tell the admin what properties he has to set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally it would be nice to have some kind of "default configuration" of the direction, let's say direction=left, which makes the process definition look like this after uploading:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;start&amp;nbsp; -&amp;gt;&amp;nbsp; go (left)&amp;nbsp; -&amp;gt;&amp;nbsp; end&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the admin should still be able to change the direction of the process, going the other direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We solved this issue for regular tasks by using activiti:fields and overriding those properties using our own mechanism. But there is no such mechanism for Execution Listeners or for process-wide properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope I made myself clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tobias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 17:29:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87451#M59223</guid>
      <dc:creator>thilka</dc:creator>
      <dc:date>2012-10-25T17:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87452#M59224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Then I still don't see why it can't be done with variables through a start form?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ie when the process starts, let him fill in a form with properties like the direction. If provided, use those variables, else use a default value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm getting the feeling your use case is different, as I don't yet understand what an 'admin' means for you in this case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 06:29:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87452#M59224</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-26T06:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87453#M59225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our use case is that the admin user is the one who configures the system to run on customer site. Once the admin finished his job and the configuration is done, the system goes live and the end user gets access to the system. The end user is the one who starts the process and fills out the start form. The data the end user enters does not decide the direction to go (to keep to the example above) but who goes in the direction configured by the admin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The main advantage of this approach is that we can define some kind of "process skeletons" where not everything is configured in the process xml file but can be configured during deployment time. Therefore we can use the same process (xml) to go left and right, and the one who deploys the process has to know that he has to configure the direction to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it helps to know that we are a product development company creating the (basic) functionality and the system is (almost always) adjusted to the customers environment/business processes. So we implement a process that can send you in different directions. But depending on where the system will be installed, the admin user can configure this process to go left for customer A and to go right for customer B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps understanding our use case better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tobias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 07:02:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87453#M59225</guid>
      <dc:creator>thilka</dc:creator>
      <dc:date>2012-10-26T07:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87454#M59226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What about using services that expose that "admin configuration" in Activiti? You can lug in your own beans/services in activiti, so you can access them in, for example, expressions in a gateway. This way, you should have a sequence-flow condition like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt; &amp;lt;sequenceFlow sourceRef="decisionGateway" targetRef="pathA"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;${adminService.getProperty('takePathA') == true}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 10:40:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87454#M59226</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-29T10:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87455#M59227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the reply. Interesting idea with the admin service. Will have to think about it. But the main issue for us is that we want to have one process defintion (in the simplest form like this: start-&amp;gt;do something-&amp;gt;end) where we already defined the "do something" part (e.g. change direction) and we want to have the admin user who deploys the process do define a parameter for the task (e.g. change direction to the left). And our application should tell the admin user that he has to fill out the parameter. Using the process variables would leave it to the admin to know he has to configure the parameter. Forgetting to configure this parameter would result in runtime errors (on customer site, maybe long after configuring the system).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since we want to make it as easy as possible for the admin to configure valid processes, we are looking for a solution here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought maybe BPMN has some features to support this (dataInput, properties) but Activiti hasn't implemented the support for these features yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tobias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 11:16:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87455#M59227</guid>
      <dc:creator>thilka</dc:creator>
      <dc:date>2012-10-29T11:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87456#M59228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use a script-task, right after the start-event, which contains something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("takePathA", true);&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;When deploying the process, the &amp;lt;script&amp;gt;..&amp;lt;/script&amp;gt; can be altered, according to the admin-properties. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another way is to use a service-task with &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#serviceTaskFieldInjection" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#serviceTaskFieldInjection&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 11:20:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87456#M59228</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-29T11:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87457#M59229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, we already use script and service tasks this way. But both don't provide the functionality to tell the admin he has to set a specific property in order to make the whole process defintion work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tobias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 13:38:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87457#M59229</guid>
      <dc:creator>thilka</dc:creator>
      <dc:date>2012-10-29T13:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87458#M59230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;to tell the admin he has to set a specific property&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;This is exactly what the field-injection is for. Or do you mean a UI for this? Offcourse, a more "global" way of defining parameters for a process INSIDE the bpmn20.xml is currently not possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only other thing I can think of is using an execution-listener (event=start) on the process and using field-injection on that one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This allows configuring all sorts of params in one single place (in the beginning of the file) and have that execution-listener set variables accordingly, so the rest of the process behaves as expected…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:02:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87458#M59230</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-29T14:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to make variables of processes configurable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87459#M59231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the idea with the process execution listener injecting the variables. I think this could be the one we are looking for. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This could be the one place to define the variables and to read out which variables should be set for the process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tobias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 14:40:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-make-variables-of-processes-configurable/m-p/87459#M59231</guid>
      <dc:creator>thilka</dc:creator>
      <dc:date>2012-10-29T14:40:16Z</dc:date>
    </item>
  </channel>
</rss>

