cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Error

joshjones
Champ in-the-making
Champ in-the-making
Hi,
I have created a workflow and deployed it in Alfresco using the workflow console, however when trying to run the error I get the message: 07100802 Failed to start workflow activiti$localReview:1:814.

This is the process:
  <process id="localReview" name="Local Review" isExecutable="true">
    <startEvent id="startEvent" name="Start" activiti:formKey="wf:newCaseReview"></startEvent>
    <serviceTask id="mailArea" name="Mail AC" activiti:type="mail">
      <extensionElements>
        <activiti:field name="to">
          <activiti:expression>${bpm_assignee.properties.userName}</activiti:expression>
        </activiti:field>
        <activiti:field name="text">
          <activiti:string><![CDATA[hello]]></activiti:string>
        </activiti:field>
        <activiti:field name="subject">
          <activiti:string><![CDATA[New Case up for Review]]></activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <userTask id="gatherEvidence" name="AC gather evidence" activiti:assignee="${bpm_assignee.properties.userName}"></userTask>
    <sequenceFlow id="flow4" sourceRef="mailArea" targetRef="gatherEvidence"></sequenceFlow>
    <endEvent id="endEvent" name="TerminateEndEvent">
      <terminateEventDefinition></terminateEventDefinition>
    </endEvent>
    <userTask id="lReview" name="Local Review" activiti:assignee="${bpm_assignee.properties.userName}"></userTask>
    <userTask id="archive" name="Archive Case" activiti:assignee="${bpm_assignee.properties.userName}"></userTask>
    <sequenceFlow id="flow8" sourceRef="lReview" targetRef="archive"></sequenceFlow>
    <sequenceFlow id="flow9" name="Archive Folder" sourceRef="archive" targetRef="endEvent"></sequenceFlow>
    <serviceTask id="mailReviewers" name="Mail Reviewers" activiti:type="mail">
      <extensionElements>
        <activiti:field name="to">
          <activiti:expression>${bpm_assignee.properties.userName}</activiti:expression>
        </activiti:field>
        <activiti:field name="text">
          <activiti:string><![CDATA[hello]]></activiti:string>
        </activiti:field>
        <activiti:field name="subject">
          <activiti:string><![CDATA[Please Review Case]]></activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow17" sourceRef="mailReviewers" targetRef="lReview"></sequenceFlow>
    <sequenceFlow id="flow18" sourceRef="startEvent" targetRef="mailArea"></sequenceFlow>
    <sequenceFlow id="flow19" sourceRef="gatherEvidence" targetRef="mailReviewers"></sequenceFlow>
  </process>
 

Can anyone suggest a good book that goes into greater detail about using Activiti with Alfresco?
1 REPLY 1

darkredd
Star Contributor
Star Contributor
Try this link: http://jmuras.com/blog/2012/creation-of-workflow-in-alfresco-using-activiti-step-by-step/

I suspect this part is wrong
<activiti:expression>${bpm_assignee.properties.userName}</activiti:expression>
it should look like this :
<activiti:expression>${bpm_assignee.properties.email}</activiti:expression>
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.