Step 1: Defining the Workflow Class
In this step, you will define the RSSVWorkOrderEntry_Workflow
class
that will contain a workflow for the Repair Work Orders (RS301000) form.
The business logic for the Repair Work Orders (RS301000) form is defined in the
RSSVWorkOrderEntry
graph, so you need to create the
RSSVWorkOrderEntry_Workflow
class as an extension of the
RSSVWorkOrderEntry
graph.
To define the RSSVWorkOrderEntry_Workflow
workflow class, do the
following:
- In the
PhoneRepairShop_Code
project, create the Workflows folder. - In the Workflows folder, add a new item named RSSVWorkOrderEntry_Workflow.cs based on the C# class template.
- In the RSSVWorkOrderEntry_Workflow.cs file, define the
workflow class, as the following code
shows.
using PX.Data; using PX.Data.WorkflowAPI; using static PX.Data.WorkflowAPI.BoundedTo<PhoneRepairShop.RSSVWorkOrderEntry, PhoneRepairShop.RSSVWorkOrder>; namespace PhoneRepairShop { public class RSSVWorkOrderEntry_Workflow : PXGraphExtension<RSSVWorkOrderEntry> { } }
- Use Acuminator to suppress the PX1016 error in a comment. In activities of this guide, for simplicity, the graph extension is always active.
- Save your changes.