Creating Step 4: Create Service Ticket for Service Step
This topic describes how the developer created the component-based step to automatically create a record for scheduled maintenance Service Tickets.
- Place a rule-based step on the Process Flow's Design tab.
- See Creating Process Flow Steps for more information on adding steps to the process flow.
Â
- See Creating Process Flow Steps for more information on adding steps to the process flow.
- In the Properties area, select the Create Service Tickets Record component from the Component drop-down menu (in the (Entity Operations) > Service Tickets category).
- The Input Properties from the component automatically flow down to the step's Properties tab. Required inputs appear in red.
Â
- The Input Properties from the component automatically flow down to the step's Properties tab. Required inputs appear in red.
- Enter the step's Name and enter the step's description on the Description tab:
- Name: Create Service Ticket for Service (The developer changed the default name since Step 2 in this process flow uses the same component.)
- Description: A Service Ticket must be created for the Vehicle because its miles have exceeded the next Scheduled Maintenance interval. When the Service Ticket entity was created, Aptify automatically created a 'Create Service Ticket Record' Process Component that will be used to generate the new Service Ticket record.
Â
- Provide values for all of the required input properties and any non-required input properties as appropriate.
Â- The following input values were provided for this step:
- Save Record: This is an input property common to all Create components generated by Aptify. A static value of Yes indicates that the Service Tickets record will be saved when this step completes before proceeding to the next step or ending the process.
- Service Status: For a new Service Ticket, the status is always Servicing, so this field is set with a static value.
- VehicleID: This is the VehicleID of the vehicle in the Rental Agreement whose BeforeCommitTransaction event fired the process flow. Since this is obtained from the Event Handler via a Process Flow Input Property, the Source Type is Context Object and the Source is the Process Flow Input Property's name (also VehicleID).
- DateReported: This input uses a Formula source to indicate that it will pass in the SQL expression GETDATE() to set the field to current date.
- ReportedByID: This is the CheckInClerkID from the Rental Agreements record. Since this is obtained from the Event Handler via a Process Flow Input Property, the Source Type is Context Object and the Source is the Process Flow Input Property's name (also ReportedByID).
- VehicleMileage: This is the return mileage from the Rental Agreements record. Since this is obtained from the Event Handler via a Process Flow Input Property, the Source Type is Context Object and the Source is the Process Flow Input Property's name (also VehicleMileage).
- ServiceType: The service type for a new Service Ticket created by this step will always be Scheduled Maintenance, so this field is set with a static value.
- ServiceNeededComments: The process flow step takes the generated ServicesNeeded text (which Step 3 placed in the Context Object) and writes it to the Service Ticket's ServiceNeededComments field. Since the ServicesNeeded value is obtained from Step 3's Output Map, the Source Type is Context Object and the Source is the Output Property's Destination name (in this case, ServicesNeeded).
- ReleaseToFleet: This is a flag in the Service Tickets record to indicate that servicing is complete and the vehicle has been returned to the rental pool. This is not applicable for new Service Tickets so the Process Flow Step sets the value of this field to 0 in all cases.
Â
- The following input values were provided for this step:
- Save the Process Flows record.
Link the four steps together (1 to 2, 1 to 3, 2 to 3, and 3 to 4). See Linking Sample Process Flow Steps Together.Â
Note that the Process Flow does not use any output values from this step so the Output Map is not configured.
Copyright © 2014-2017 Aptify - Confidential and Proprietary