Can anyone provide guidance on how to distinguish between the assignments when using a Split for Each shape?
For example, if there are multiple steps that say ‘Complete Deliverable,’ I may want to provide more context in the label so that I know which deliverable needs to be completed.
The assignments component is getting the task name from pxFlow().pyLastFlowStepLabel by default. If this property is empty, only then it is looking into the pxTaskLabel property that is saved in Assignment. (Step 7.1 and 7.8 in pzSetAssignmentsList )
So, for this to work, first we have to write a data transform on the pre connector to set a parameter.
And most importantly for all the above set-up to work, the step label needs to be empty. If we give a value here, system does not consider our logic and simply uses step label.
I don’t think removing the step name in a flow is a best practice. But, to achieve this requirement, this seems to be the way right now.
It would be great if this component also uses pxTaskLabel from assignment directly to show the Task Name (similar to OOTB worklist widgets) instead of relying on pxFlow and showing the step name which we cannot customize. @MarcCheong
Agreed! Keeping the flow name as blank is not a good practice. However, there is no when condition in the NewDefaults activity. Could you please confirm if NewDefaults will be triggered in Constellation during the case workflow?
The when condition is not in NewDefaults, it is in pzSetAssignmentsList which runs when we launch the case and the screen is loaded. And yeah NewDefaults is being triggered in Constellation.
@morak The // in your step 1 actually makes Pega skipp this entire step - that is why it is not executing. Easy miss, especially when you copied it from OOTB (where it is //)