cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow duedate - task form

matjazmuhic
Champ on-the-rise
Champ on-the-rise
My due date isn't showing on task forms. When I go to my workflows and view the details, under summary there is "Due on Fri 10 Dec 2010", but under  general info "due date:" is empty.

Any ideas?
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Is this a custom workflow you are talking about?

Just to clarify there are 2 due dates, one for the workflow and one for each task.

Most of our out of the box workflows set the task due date to be the same as the workflow due date (the one you set when starting a workflow), have a look at any *processdefinition.xml file you'll see the following lines:

if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;

bhashitha
Champ in-the-making
Champ in-the-making
in my custom process definition, it looks like below..

<?xml version="1.0" encoding="UTF-8"?>

<process-definition xmlns="urn:jbpm.org:jpdl-3.1"
   name="scwf:eDS">

   <swimlane name="initiator" />
   <swimlane name="Subject_Officer">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <pooledactors>#{people.getGroup('GROUP_subjectOfficers')}
         </pooledactors>
      </assignment>
   </swimlane>
   <swimlane name="ADS">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <pooledactors>#{people.getGroup('GROUP_ADS')}
         </pooledactors>
      </assignment>
   </swimlane>
   <swimlane name="DS">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <pooledactors>#{people.getGroup('GROUP_DivisionalSecretary')}
         </pooledactors>
      </assignment>
   </swimlane>
   <start-state name="Start">
      <task name="scwf:submitReviewTask3" swimlane="initiator" />
      <transition name="start" to="Submit"></transition>
   </start-state>


   <node name="Submit">
      <event type="node-enter">
         <script>
            <variable name="approveCount" access="read,write" />
            <expression>
               approveCount = 0;
            </expression>
         </script>
      </event>
      <transition to="Subject_Officer_Review"></transition>
   </node>

   <task-node name="Subject_Officer_Review">
      <task name="scwfSmiley SurprisedperationsReview3" swimlane="Subject_Officer" />
      <transition to="Approve?" name="approve">
         <script>
            <variable name="approveCount" access="read,write" />
            <expression>
               approveCount = approveCount + 1;
            </expression>
         </script>
      </transition>
      <transition to="Approve?" name="reject"></transition>
      <transition to="ADS" name="to_ADS"></transition>
   </task-node>

   <decision name="Approve?">
      <transition to="Revise" name="reject"></transition>
      <transition to="end-state1" name="approve">
         <condition>#{approveCount == 1}</condition>
      </transition>
   </decision>

   <task-node name="ADS">
      <task name="scwfSmiley SurprisedperationsReview4" swimlane="ADS" />
      <transition to="DS" name="to D.S"></transition>
      <transition to="Subject_Officer_Review" name="approve"></transition>
      <transition to="Subject_Officer_Review" name="reject"></transition>
   </task-node>

   <task-node name="DS">
      <task name="scwfSmiley SurprisedperationsReview5" swimlane="DS" />
      <transition to="decision3" name="approve">
         <script>
            <variable name="approveCount" access="read,write" />
            <expression>
               approveCount = approveCount + 1;
            </expression>
         </script>
      </transition>
      <transition to="ADS" name="reject"></transition>
   </task-node>

   <decision name="decision3">
      <transition to="end-state1" name="to_end">
      <condition>#{approveCount == 1}</condition>
      </transition>
   </decision>

   <task-node name="Revise">
   <task name="scwf:revise3" swimlane="initiator"></task>
      <transition to="Submit" name="submit"></transition>
      <transition to="end-state1" name="to end-state1"></transition>
   </task-node>


   <end-state name="end-state1"></end-state>


</process-definition>



can u please guide me where to include following 2 lines of code as u mentioned..
(I also want to display the  workflow due date and work flow pririty, as my each task's due date and priority )
if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;