Workflow Actions: To Implement an Action with Field Assignments
This activity will walk you through the process of implementing a workflow action that assigns values to DAC fields without any graph logic.
Learning Objectives
In this activity, you will learn how to do the following:
- Define a graph action with an empty method
- Add a workflow action to the screen configuration
- Configure field assignments that happen when the action is performed
- Configure the location of a command in a category
Story
Suppose that a user should be able to mark a repair work order as completed when it has the Assigned status. To do that, the user should be able to click the Complete button. The underlying action will cause the date of the completion to be inserted in the Date Completed box of the Repair Work Orders (RS301000) form, and the repair work order to be assigned the Completed status. The Complete action should always be displayed last in the Processing category.
Process Overview
In your extension library, you will define the Complete
action, the
Completed
state, and the transition from the
Assigned
state to the Completed
state. You
will learn how to define the assignment of the Date Completed
box in a workflow action. You will also specify the location of the
Complete command on the More menu.
System Preparation
In an instance with the T100 dataset, make sure that you have done the following:
- Prepared an instance with the PhoneRepairShop customization project and enabled the workflow validation by performing the prerequisite activities in the Preparing an Instance for Workflow Customization chapter.
- Prepared the screen configuration and defined the set of states by performing the prerequisite activities in the Preparing a Screen Configuration chapter.
- Defined the
Assigned
state by performing the Step 3: Defining the State and the Transition prerequisite activity.