cancel
Showing results for 
Search instead for 
Did you mean: 

assign two tasks for two differnt persons

mirko
Champ in-the-making
Champ in-the-making
Hi,
I would like to assign two persons in the start node task. For example, first person for task wf:A and another person for task wf:B. So, I would like to have two "comboboxes (component in the web UI)" in the first dialog of the workflow definitions. One for taks wf:A and one for task wf:B.

With many thanks Mirko
2 REPLIES 2

mirko
Champ in-the-making
Champ in-the-making
i have found a solution: simply add a new aspect to tile bpmModel.xml, but i think this is not a good solution…

        <aspect name="bpm:assignee2">
            <associations>

                <association name="bpm:assignee2">
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>cm:person</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>

            </associations>
        </aspect>

davidc
Star Contributor
Star Contributor
Hi Mirko,

You're on the right track.  You need to add a new association (to person) on the start task.

However, I wouldn't modify bpmModel.xml.

Define yourself a new model (you may have done this already).  In that model, define a new type (derived from bpm:startTask, you may have done this already too) and add the person association directly to it.