cancel
Showing results for 
Search instead for 
Did you mean: 

Check In/Check Out in Advanced Workflow and not yet started

jlae
Champ in-the-making
Champ in-the-making
Hello,

I've developed a single submit and approve workflow but I ran into a few issues.

First, when I start the advanced workflow, the task status is always 'Not Yet Started'. Even if I add the property to the web client UI of the task, and use a script to set it, like this
<event type="task-create">
        <script>
          if (bpm_status != void) {
            taskInstance.status = bpm_status;
          }
        </script>
      </event>
it always gets 'not yet started'. How should I start the task when I start the workflow?

And another thing, from the screenshots I think it's possible to check in and check out the document associated with the advanced workflow, but with my current definition, I can only see its properties and I don't have the appropriate buttons in the actions column when performing a task.

Any help will be much appreciated. Thanks!

Joao
2 REPLIES 2

davidc
Star Contributor
Star Contributor
You can set default values for task properties using the associated task model.  The model is also used to specify which actions are available on content within the task.

For example:

 
    <type name="wf:mytask">
         <parent>bpm:workflowTask</parent>
         <overrides>
            <property name="bpm:status">
               <default>In Progress</default>
            </property>
            <property name="bpm:packageActionGroup">
               <default>add_package_item_actions</default>
            </property>
            <property name="bpm:packageItemActionGroup">
               <default>edit_package_item_actions</default>
            </property>
         </overrides>
      </type>

For valid packageActionGroup and packageItemActionGroup values see http://wiki.alfresco.com/wiki/WorkflowAdministration#Workflow_Package_Actions

jlae
Champ in-the-making
Champ in-the-making
Thank you so much, that fixed it.

Joao.