<?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 User task is automatically rejected in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/user-task-is-automatically-rejected/m-p/19905#M8806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a newbie and currently using Alfresco newest community edition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to recreate a simple review (approve/reject) task for later use. It is not a timed task. Once I assign the task, it is instantly rejected automatically.&lt;BR /&gt;Inside my repo-tier bpmn, I have copy some fragments from some sample codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer" target="_blank"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" expressionLanguage="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" targetNamespace="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.activiti.org/test" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.activiti.org/test&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;process id="loanReview" name="Loan Review" isExecutable="true"&amp;gt;&lt;BR /&gt; &amp;lt;userTask id="reviewInProcess" name="Review In Process" activiti:assignee="${initiator.properties.userName}" activiti:formKey="wf:activitiReviewTask"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&lt;BR /&gt; if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate&lt;BR /&gt; if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;&lt;BR /&gt; &amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt; &amp;lt;activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&lt;BR /&gt; execution.setVariable('wf_reviewOutcome', task.getVariable('wf_reviewOutcome'));&lt;BR /&gt; &amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt; &amp;lt;startEvent id="startevent1" name="Start" activiti:formKey="wf:submitReviewTask"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow5" sourceRef="startevent1" targetRef="reviewInProcess"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;serviceTask id="alfrescoScripttask1" name="Approving/Denying" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow6" sourceRef="reviewInProcess" targetRef="alfrescoScripttask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow7" sourceRef="alfrescoScripttask1" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;/process&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &amp;lt;bpmndi:BPMNDiagram id="BPMNDiagram_loanReview"&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNPlane bpmnElement="loanReview" id="BPMNPlane_loanReview"&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="reviewInProcess" id="BPMNShape_reviewInProcess"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="55.0" width="105.0" x="120.0" y="320.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="35.0" width="35.0" x="460.0" y="330.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="35.0" width="35.0" x="20.0" y="330.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="alfrescoScripttask1" id="BPMNShape_alfrescoScripttask1"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="55.0" width="105.0" x="310.0" y="320.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="55.0" y="347.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="120.0" y="347.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="225.0" y="347.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="310.0" y="347.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="415.0" y="347.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="460.0" y="347.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNPlane&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNDiagram&amp;gt;&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why&amp;nbsp;execution.setVariable('wf_reviewOutcome', task.getVariable('wf_reviewOutcome')); dont work?&lt;BR /&gt;(let's assume share-tier part is setup correctly)&lt;BR /&gt;I appreciate any help or advice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2017 02:33:55 GMT</pubDate>
    <dc:creator>tim1234</dc:creator>
    <dc:date>2017-06-19T02:33:55Z</dc:date>
    <item>
      <title>User task is automatically rejected</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/user-task-is-automatically-rejected/m-p/19905#M8806</link>
      <description>I am a newbie and currently using Alfresco newest community edition.&amp;nbsp;I have been trying to recreate a simple review (approve/reject) task for later use. It is not a timed task. Once I assign the task, it is instantly rejected automatically.Inside my repo-tier bpmn, I have copy some fragments from so</description>
      <pubDate>Mon, 19 Jun 2017 02:33:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/user-task-is-automatically-rejected/m-p/19905#M8806</guid>
      <dc:creator>tim1234</dc:creator>
      <dc:date>2017-06-19T02:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: User task is automatically rejected</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/user-task-is-automatically-rejected/m-p/19906#M8807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, @Tim Lam!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to use&lt;/P&gt;&lt;P&gt;execution.setVariable('wf_reviewOutcome', task.getVariable&lt;STRONG&gt;Locale&lt;/STRONG&gt;('wf_reviewOutcome'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't helps attach please model of your workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 23:04:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/user-task-is-automatically-rejected/m-p/19906#M8807</guid>
      <dc:creator>vhelmut</dc:creator>
      <dc:date>2017-09-22T23:04:08Z</dc:date>
    </item>
  </channel>
</rss>

