cancel
Showing results for 
Search instead for 
Did you mean: 

Items selection in a custom task

juniorbl
Champ in-the-making
Champ in-the-making
Hi everyone,

Does anyone know how to add one of those "Items" option to add or remove items in a custom task? I have a workflow that starts with "bpm:startTask", there is an items option there where I can choose documents to add in the workflow, I'd like to do the same thing in my custom task. I've tried to override the "bpmSmiley TongueackageActionGroup" and add an association with "bpmSmiley Tongueackage" but it didn't work. The parent of my task is "wf:activitiReviewTask" (workflowModel), I'm using Alfresco 4 and share.

Thank you in advance.
4 REPLIES 4

lyles
Champ in-the-making
Champ in-the-making
If I understand correctly, you just need to add something like the following to your workflow model to get the desired behaviour:
      <!– This review task can add items and view existing ones –>
      <type name="mywf:myReviewTask">
         <parent>wf:activitiReviewTask</parent>
         <overrides>
            <property name="bpm:packageActionGroup">
               <default>add_package_item_actions</default>
            </property>
            <property name="bpm:packageItemActionGroup">
               <default>read_package_item_actions</default>
            </property>
         </overrides>
      </type>

supta
Champ in-the-making
Champ in-the-making

juniorbl
Champ in-the-making
Champ in-the-making
Great but what should I put in share-config-custom to display it correctly? I tried bpmSmiley TongueackageActionGroup and bpmSmiley TongueackageItemActionGroup but I only see a normal text input, if I put just packageItems in the show and field tags I can see the list of items but I cannnot add new ones.

Regards.

juniorbl
Champ in-the-making
Champ in-the-making
It's working, I've started a new workflow and I can see it now, I just added "<show id="packageItems" />" and "<field id="packageItems" set="items" />" with the "overrides" tag above, the problem was that it wasn't updating the one I was testing. Thank you for the help.