cancel
Showing results for 
Search instead for 
Did you mean: 

two package fields in advanced workflow

ramimoncer
Champ on-the-rise
Champ on-the-rise
I created an advanced workflow (with Activiti) and I want the Share UI displaying two package fields (template packageitems.ftl)  so I can import two package items separately in my workflow.
I tried many possibilies but in vain.
Sorry for my English.
1 REPLY 1

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
in your workflow model you'll need to create a new association for the new packaged items. I'm not sure how alfresco handles them in the backend (haven't checked the code) but you might need to extend some classes to have it working….

You'll need to create your own workflow task (by inheriting from bpm:workflowTask for example) and adding an extra association:


<type name="my:workflowTask">
            <parent>bpm:workflowTask</parent>

            <associations>

                <association name="my:package">
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>bpm:workflowPackage</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>

            </associations>



Then you'll need to configure the form.

I haven't tried it… so don't know if it works…