<?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: Problems accessing bpm_comment variable in transition script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91783#M62686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not all task variables are automatically pushed back into the workflow context and therefore available via javascript in subsequent script handlers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, bpm_comment is not transferred to the workflow context because it's actually stored on the task as a formal jbpm comment.&amp;nbsp; Only named variables assigned to the task are transferred to the workflow context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a way of accessing using native jbpm support:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"&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;lt;script&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;nbsp; &amp;lt;expression&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;nbsp;&amp;nbsp;&amp;nbsp; comment = "";&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;nbsp;&amp;nbsp;&amp;nbsp; if (token.comments.size() &amp;gt; 0)&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = token.comments.get(0).message;&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;nbsp; &amp;lt;/expression&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;nbsp; &amp;lt;variable name="comment" access="write"/&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;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;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;/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;SPAN&gt;This will create a comment variable in the workflow context.&amp;nbsp; Or you can just use token.comments within your script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workflow variable handling is still one of the areas that needs improvement, so I hope we address in future releases of Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 13:06:28 GMT</pubDate>
    <dc:creator>davidc</dc:creator>
    <dc:date>2007-07-25T13:06:28Z</dc:date>
    <item>
      <title>Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91781#M62684</link>
      <description>Using the lastest 2.1 RC.&amp;nbsp; I am trying to access the task variable bpm_comment that is part of the bpm:Task type.&amp;nbsp; I have this variable exposed in the UI fine and can fill it in and it shows up in the workflow history.&amp;nbsp; However, on the transition script, I try to assign it as a parameter into an act</description>
      <pubDate>Mon, 23 Jul 2007 15:21:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91781#M62684</guid>
      <dc:creator>jdbrown</dc:creator>
      <dc:date>2007-07-23T15:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91782#M62685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also verified bpm_comment is not accessible/visible when I use the JavaScript debugger against the adhoc process definition that comes out-of-the-box.&amp;nbsp; It does however show up fine in the workflow history and in the jbpm_comments table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following is the detail on that task:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;id: jbpm$5&lt;BR /&gt;name: wf:submitAdhocTask&lt;BR /&gt;title: Start Adhoc Task&lt;BR /&gt;description: Allocate task to colleague&lt;BR /&gt;state: COMPLETED&lt;BR /&gt;path: jbpm$2-@&lt;BR /&gt;transitions: 1&lt;BR /&gt; transition: [default] , title: Task Done , desc: Task Done&lt;BR /&gt;properties: 20&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}dueDate" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}dueDate&lt;/A&gt; = null&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}assignee" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}assignee&lt;/A&gt; = workspace://SpacesStore/8a393a59-3952-11dc-9dc7-b925da6b15f8&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}context" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}context&lt;/A&gt; = workspace://SpacesStore/2ccbd6af-3952-11dc-9dc7-b925da6b15f8&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}description" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}description&lt;/A&gt; = ad hoc desc&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}workflowDescription" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}workflowDescription&lt;/A&gt; = ad hoc desc&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/content/1.0}created" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}created&lt;/A&gt; = 2007-07-23 14:40:37.0&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}workflowDueDate" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}workflowDueDate&lt;/A&gt; = null&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}outcome" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}outcome&lt;/A&gt; = &lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}completionDate" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}completionDate&lt;/A&gt; = 2007-07-23 14:40:37.0&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}status" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}status&lt;/A&gt; = Completed&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/content/1.0}owner" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}owner&lt;/A&gt; = admin&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}packageActionGroup" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}packageActionGroup&lt;/A&gt; = add_package_item_actions&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}priority" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}priority&lt;/A&gt; = 2&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}startDate" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}startDate&lt;/A&gt; = null&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/workflow/1.0}notifyMe" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/workflow/1.0}notifyMe&lt;/A&gt; = false&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}percentComplete" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}percentComplete&lt;/A&gt; = 0&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}taskId" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}taskId&lt;/A&gt; = 5&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}package" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}package&lt;/A&gt; = workspace://SpacesStore/96068cdd-3954-11dc-9dc7-b925da6b15f8&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}workflowPriority" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}workflowPriority&lt;/A&gt; = 2&lt;BR /&gt; {&lt;A href="http://www.alfresco.org/model/bpm/1.0}packageItemActionGroup" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}packageItemActionGroup&lt;/A&gt; = start_package_item_actions&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;/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;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;/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;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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 19:45:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91782#M62685</guid>
      <dc:creator>jdbrown</dc:creator>
      <dc:date>2007-07-23T19:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91783#M62686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not all task variables are automatically pushed back into the workflow context and therefore available via javascript in subsequent script handlers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, bpm_comment is not transferred to the workflow context because it's actually stored on the task as a formal jbpm comment.&amp;nbsp; Only named variables assigned to the task are transferred to the workflow context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a way of accessing using native jbpm support:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"&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;lt;script&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;nbsp; &amp;lt;expression&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;nbsp;&amp;nbsp;&amp;nbsp; comment = "";&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;nbsp;&amp;nbsp;&amp;nbsp; if (token.comments.size() &amp;gt; 0)&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = token.comments.get(0).message;&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;nbsp; &amp;lt;/expression&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;nbsp; &amp;lt;variable name="comment" access="write"/&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;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;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;/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;SPAN&gt;This will create a comment variable in the workflow context.&amp;nbsp; Or you can just use token.comments within your script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workflow variable handling is still one of the areas that needs improvement, so I hope we address in future releases of Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 13:06:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91783#M62686</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-07-25T13:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91784#M62687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks David.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By "workflow context" is that the same as "process variables" as described in the wiki?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, what do you mean by named variables assigned to the task?&amp;nbsp; The bpm_comment is a property on my task inherited from the parent bpm:Task.&amp;nbsp; Do you mean the workflow script only has access to those properties I declare myself directly on my custom task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you be able to clarify in greater detail on how task and process variables are handled then?&amp;nbsp; The wiki documentation states broadly that: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "Alfresco JavaScript has access to all process variables and (if applicable) task variables, unless the &amp;lt;variables&amp;gt; element is provided, in which case, specific variables may be passed in and out of the script."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/WorkflowAdministration#Actions_.26_Scripting" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/WorkflowAdministration#Actions_.26_Scripting&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, can you point me to some detail on the difference between the scripting syntaxes and how/if they impact what is accessible?&amp;nbsp; I have not found anything that explains teh difference between using the &amp;lt;expression&amp;gt; tag versus exlcuding it within the AlfrescoScriptAction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand what you are saying, the wiki doc is not accurate?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I apologize for so many questions.&amp;nbsp; How variables are handled and interact with scripting greatly impacts the usefulness of the Alfresco Workflow component so is a critical decision point when comparing ECM products for my client.&amp;nbsp; Thanks again for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 13:48:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91784#M62687</guid>
      <dc:creator>jdbrown</dc:creator>
      <dc:date>2007-07-25T13:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91785#M62688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By "workflow context" is that the same as "process variables" as described in the wiki?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, what do you mean by named variables assigned to the task? The bpm_comment is a property on my task inherited from the parent bpm:Task. Do you mean the workflow script only has access to those properties I declare myself directly on my custom task?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;In jBPM, a task may have an associated set of name/value pairs (or otherwise known as variables).&amp;nbsp; This allows arbitrary data to be associated with the task.&amp;nbsp; However, in jBPM, a task also supports basic built-in properties such as Id, assignee, comments, priority etc.&amp;nbsp; The properties in the Alfresco Task model either map to one of the built-in jBPM task properties or a named/value pair (if a built-in property is not appropriate).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this time, only variables on the task are pushed back to workflow variables - not built-in task properties.&amp;nbsp; Comment is a built-in property, therefore it's not pushed back as a workflow variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For custom task types that derive from bpm:Task, all of their custom properties are mapped to task variables and therefore pushed back to workflow variables and accessible in script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the area where I see improvements can be made, is access to task properties directly in script.&amp;nbsp; jBPM provides a 'taskInstance' variable which gives access to built-in properties and also associated name/value pairs, but the api could be simplified and made consistent with our approach to accessing properties on an Alfresco node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, can you point me to some detail on the difference between the scripting syntaxes and how/if they impact what is accessible? I have not found anything that explains teh difference between using the &amp;lt;expression&amp;gt; tag versus exlcuding it within the AlfrescoScriptAction.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The expression tag alone makes no difference to what the script can achieve or has access to.&amp;nbsp; It's used primarily in conjunction with the variable tag which allows explicit control over the workflow variables that are made available to the script.&amp;nbsp; See the jBPM docs for more info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If I understand what you are saying, the wiki doc is not accurate?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The wiki doc needs to provide more information and clarification.&amp;nbsp; I'd like to overhaul the whole workflow administration wiki to allow people to ease into workflow step-by-step.&amp;nbsp; It's a bit of chicken &amp;amp; egg situation - I need to find time to do that, but it's partly spent on supporting and training workflow.&amp;nbsp; The good news is that we have new engineering resource to apply to workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I apologize for so many questions. How variables are handled and interact with scripting greatly impacts the usefulness of the Alfresco Workflow component so is a critical decision point when comparing ECM products for my client. Thanks again for your help!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No problem - I'm sure we have a workflow component that compares to any ECM (open or proprietary) system.&amp;nbsp; We're probably lacking in documentation and some ease-of-use.&amp;nbsp; But, that'll be resolved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 09:46:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91785#M62688</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-07-26T09:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91786#M62689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks David.&amp;nbsp; Your explanation made things much clearer.&amp;nbsp; I have implemented your solution for comment already and it works perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the great work and great product!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 12:29:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91786#M62689</guid>
      <dc:creator>jdbrown</dc:creator>
      <dc:date>2007-07-26T12:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91787#M62690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David, as a follow-up question to your explanantion above, how is this handled when dealing with parallel tasks?&amp;nbsp; In other words, are the task variables still pushed up to the workflow?&amp;nbsp; I do not see that happening and wondering if that is the expected behavior for parallel tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 19:06:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91787#M62690</guid>
      <dc:creator>jdbrown</dc:creator>
      <dc:date>2007-08-10T19:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91788#M62691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In response to what Jeff was saying… In my parallel review, when I try to access comments, it thinks there aren't any. But when I do a group review, it knows what comments were attached.&amp;nbsp; If anybody has an answer to this too that would be most wonderful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 18:24:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91788#M62691</guid>
      <dc:creator>lucille_arkenst</dc:creator>
      <dc:date>2010-07-29T18:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91789#M62692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In jBPM, a task may have an associated set of name/value pairs (or otherwise known as variables).&amp;nbsp; This allows arbitrary data to be associated with the task.&amp;nbsp; However, in jBPM, a task also supports basic built-in properties such as Id, assignee, comments, priority etc.&amp;nbsp; The properties in the Alfresco Task model either map to one of the built-in jBPM task properties or a named/value pair (if a built-in property is not appropriate).&lt;BR /&gt;&lt;BR /&gt;At this time, only variables on the task are pushed back to workflow variables - not built-in task properties.&amp;nbsp; Comment is a built-in property, therefore it's not pushed back as a workflow variable.&lt;BR /&gt;&lt;BR /&gt;For custom task types that derive from bpm:Task, all of their custom properties are mapped to task variables and therefore pushed back to workflow variables and accessible in script.&lt;BR /&gt;&lt;BR /&gt;…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I have a problem of a different kind, I can't update bpm:assignee with new value in Java when updating task prior to signaling it. I have whole topic on this, but no one has answered so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=34&amp;amp;t=35005" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=34&amp;amp;t=35005&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 06:51:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91789#M62692</guid>
      <dc:creator>joko71</dc:creator>
      <dc:date>2010-10-19T06:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems accessing bpm_comment variable in transition script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91790#M62693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can i access the filename on which the advance workflow is trigerred inside the workflow process definition using javascript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 12:32:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-accessing-bpm-comment-variable-in-transition-script/m-p/91790#M62693</guid>
      <dc:creator>bikash</dc:creator>
      <dc:date>2014-03-27T12:32:56Z</dc:date>
    </item>
  </channel>
</rss>

