cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Workflow template

ramalama188
Champ in-the-making
Champ in-the-making
Hi,
I have created a custom workflow definition in which there exist two chained tasks, Review and Approve.
Each task has its own actor, and for that I've defined two new assignee types: wfl:assigneeReview and wfl:assigneeApprove.

The workflow is deployed ok but I need to have a customised "Assign workflow" form, containing two "people-finder" components: one for review and one for approve. I have tried to modify the "workflow.get.html.js" template by duplicating the specific divs and then modifying the workflow.js module duplicating all the event listener, dataSources, dataTables, etc.. for the peopleSelect id.

I got both people-finder components displayed on the form but they seem to work synchronized, I mean, when I add a person to the selected list on the first one, the other one becomes disabled.

However, my main question is, How is the the workflow submission handled? How/Where can I wire the people-finder component to the wfl:assigneeReview type that I defined?

Help much appreciated.
Thanks
2 REPLIES 2

zaizi
Champ in-the-making
Champ in-the-making
You'll probably have to change the div ids to stop one being disabled when person is selected in the other.

There is a web script located at /slingshot/doclib/action/assign-workflow that does the workflow assignment. You'll want to extend that.

Ainga

ramalama188
Champ in-the-making
Champ in-the-making
Thanks zaizi for your reply.

I have duplicated every id or event listener in the workflow.js script but it doesn't seem to be fixed yet.

Looking into the /slingshot/doclib/action/assign-workflow file I can see these lines:

// Must also have array of people
   assignees = getMultipleInputValues("people");

However, I'm not able to find that "people" parameter in the workflow.js script. Where is that variable being populated?

Many thanks