Creating a custom task type that adds a custom button
You can add another button that displays to review participants
in Workspace. For example, add another button in the approver task,
which is named Approved with changes. The button provides the same
function as the Approve button, and the decision of the approver
is stored as a disposition.
-
In Workbench, retrieve the application ReviewCommentingAndApproval application.
-
Create a LiveCycle Application named CustomTaskTypes.
-
Copy the AssignTaskToApprover process from the ReviewCommentingAndApproval
application to your CustomTaskTypes application, rename the process
to CustomAssignToApprover.
-
Open the CustomAssignToApprove in the process editor.
-
Keep the Approver Task and delete Approver Task (Complete
By Email) for this example
-
Copy Set Status APPROVED and rename it as Set Status APPROVED
With Changes.
-
Draw a route from Approver Task operation to Set Status APPROVED
With Changes.
-
Add a new string variable named disposition.
-
Select "Set Status APPROVED (execute operation) operation,
and add the following value:
Location: /process_data/@disposition
Expression
'Approved'.
-
Select the Set Status REJECTED operation (execute operation)
and add the following mapping: Location: /process_data/@disposition:
Expression 'Rejected'
-
Select Update ParticipantTO operation (Execute operation)
and add the following mapping:
Location: /process_data/participantTO/object/@disposition
Expression:
/process_data/@disposition.
-
Select the Approver Task operation (Assign Task operation)
and in the User Actions property, click the Add button.
-
Type Approve with Changes in the action name and select Set
Status Approved With Changes as the destination.
-
Save and deploy the application.