AnsweredAssumed Answered

Custom Workflow

Question asked by lakshya on Mar 26, 2009
Hello, I have created one custom workflow as per the steps given in

I am able to assign a task to a User2 by  User1. I can see the task in 'Completed Task' list of User1 but not able to see the task in 'Task To Do' list of User2.

The process definition I am using is
<?xml version="1.0" encoding="UTF-8"?>

<process-definition xmlns="" name="wf:adhoc">

  <swimlane name="initiator"/>

  <start-state name="start">
    <task name="wf:submitAdhocTask" swimlane="initiator"/>
    <transition name="" to="adhoc"/>

  <swimlane name="assignee">
    <assignment actor-id="#{['cm:userName']}"/>
  <task-node name="adhoc">
    <task name="wf:adhocTask" swimlane="assignee">
      <event type="task-create">
          if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
          if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;
    <transition name="" to="completed">
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
          if (wf_notifyMe)
            var mail = actions.create("mail");
            mail.parameters.subject = "Adhoc Task " + bpm_workflowDescription;
            mail.parameters.from =["cm:email"];
            mail.parameters.text = "It's done";
  <task-node name="completed">
    <task name="wf:completedAdhocTask" swimlane="initiator"/>
    <transition name="" to="end"/>
  <end-state name="end"/>

  <event type="process-end">
     <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
           if (logger.isLoggingEnabled())
              logger.log("End of process.  Cancelled: " + cancelled);

Any pointers will be appreciated…

Also, can anyone provide me link for creating approve / reject workflow.