DALIM ES has a very strong workflow engine with several possibilities to map users to tasks.
Approval steps can be approved by individual persons, groups of people or roles (called actors as well). Milestones can be approved by roles only.
This topic here is perfect if:
Adding an actor to a project is required if you want this person to approved a step assigned to a role but do not forget that you may want to add someone into the stakeholder list just to:
So, what will you need to achieve this?
or
ES Workflow Editing (ES-5211)
ES Custom Job Ticket (ES-5300) to add a custom layout to your approval step.
No advanced java scripting is required, just follow the guide below!
In your workflow, in a programmed link use the function SetProductionGroup. The arguments of this function are the name of your user or group and the actor that will receive the new value. You can get values from MetadataValues.
var agency = Context.getMetaData("Job","MdtNameSpace","AgencyContact");
var customer Context.getMetaData("Job","MdtNameSpace","CustomerContact");
var array = Java.type("java.lang.Object[]");
if(customer != null && customer.length > 0)
{
var argsCustomer = new array(3);
argsCustomer[0] = "SetProductionGroup";
argsCustomer[1] = customer;
argsCustomer[2] = "CUSTOMER";
Context.exec("JobFunctions", argsCustomer);
}
if(agency != null && agency.length > 0)
{
var argsAgency = new array(3);
argsAgency[0] = "SetProductionGroup";
argsAgency[1] = agency;
argsAgency[2] = "AGENCY";
Context.exec("JobFunctions", argsAgency);
}
return true;
Custom layout setup:
|
---|
Result:
|
---|
|
---|
|
---|