Workflow examples enable users to easily understand the Workflow patterns and best practices. This section provides the multiple Workflow examples that illustrate the common problems users might face while using the Workflow and how Workflow can be utilized to solve business scenarios. All examples define in this section are available in the IFS Cloud as Workflow Templates.
This section describes a set of common problems you might encounter when designing the Workflows and how to overcome them. As mentioned early, all these Workflows examples are available in IFS Cloud as Template Workflows. You could simply execute these Workflows in troubleshooting mode and observe the execution results against each activity without deploying them.
This Workflow demonstrates that how to manipulate date values using script tasks. Please check the latest version of the Workflow "DatesExample" in IFS Cloud.
Execution of this Workflow in troubleshooting mode.
This Workflow demonstrates that how to use arithmetic operations using script tasks. Please check the latest version of the Workflow "ArithmeticExample" in IFS Cloud.
Execution of this Workflow in troubleshooting mode.
Split Attributes from Record Selector¶
There is a common pattern in IFS Cloud for passing the information of a selected record from client to middle tier. That is, represent the selected record as a single string by separating the attributes by a delimiter. Below example shows the request payload for "Copy Lines" request for selected record.
If it required to access the attributes of the selected record inside a Workflow, then Workflow Script Task can be used to split the attributes from this single string.
Template Workflow SplitRecordSelectorExample, which is available in IFS Cloud, demonstrates that how script task can be utilized to spit the attributes from selected record. Please check the latest version of the of this Workflow.
You could execute this workflow in troubleshooting mode. Below key and value can be used as an example to troubleshoot it.
Key : RecordSelection , Value : ORDER_NO=100005^LINE_NO=1^RELEASE_NO=1^
Below is a set of examples that demonstrates how Workflow can be used to solve business problems.
Split Purchase Order Lines¶
The Split Purchase Order Lines workflow was created as a demo to replace a customization in Apps 10 which allowed a user to receive a portion of a Purchase Order without completing the transaction. The ability to leave a Purchase Order open for extended periods of time is crucial to manufacturing and service organizations with complex delivery terms over a longer period. In this instance, the organization could be able to recognize revenue at an earlier date, as each vehicle was delivered.
Workflow DemoSplitPOLinesExample is available on IFS Cloud as a Template Workflow together with the projection action configuration. You can try this out by following the below mention steps.
PURCH component should be enabled in IFS Cloud
Steps to Follow:¶
1 Clone the DemoSplitPOLinesExample Workflow as a new Workflow and deploy it. Then add the below projection action for the deployed workflow.
2 Create a purchase order for a supplier.
3 In the above purchase order, we have 8 racing tires. Think of the scenario supplier delivered just 4 tires, and the other 4 will come in a future shipment. So we have to
- Change the current line's quantity to 4 and confirm.
- Add a new line to tally with remaining 4 tires, which will be delivered next.
The workflow we just set up automates adding new line step. Select the order line and click "Confirm Order Lines with Differences"
4 Change the quantity into 4 in the assistant screen that comes up, save the change and click on "Confirm". Confirm the popup that comes next as well.
5 Now a new purchase order line is added automatically by the workflow with the remaining quantity (8-4=) 4.
Create Task Purchase Order¶
The Create Task Purchase Order workflow was created to demonstrate how automation can help both the back office and field operations save time and improve customer satisfaction. In scenarios where a drop ship supply chain is utilized for expensive items, automating purchase requisitions for those tasks improves efficiency in the back office and ensures the materials are ready for use at the necessary time, reducing customer frustration from an unnecessary visit.
Workflow DemoCreateTaskPOExample is available on IFS Cloud as a template Workflow including the projection action configuration. Please refer to the following steps to try out the workflow.
WO component should be enabled in IFS Cloud
Steps to Follow:¶
Clone the DemoCreateTaskPOExample Workflow as a new Workflow and deploy it. Then add the below projection action configuration for the deployed workflow.
Create or select a Work Order that contains one or more work tasks and status is under "WorkRequest"
Select any Work Task under the work order and navigate to the details
Create a material entry if there is none. Then you could see purchase requisition options.
Then go back to the work order and set the status to "Released".
Once work order is released, navigate to the Material section of the work task and then we can observe that purchase requisition options are no longer available as it is already handled by the workflow.
Improve Data Quality in Customer Order Creation Process¶
The Customer Order PO Workflows were created to demonstrate how using automation to improve data quality earlier in a business process can reduce rework and customer frustrations later in the same process. Workflows "DemoAddCustomerPONoExample" and "DemoValidateCustomerPONoExample" are available on IFS Cloud as a Template Workflows including the projection action configuration.
The first Workflow demonstrates how the user can be prompted to provide missing data which can them be automatically applied on their behalf along with any necessary calculations. The second Workflow demonstrates how the system can be augmented to refuse data, which is not up to business standards, including the use of context (customer) specific logic in these validations.
ORDER component should be enabled in IFS Cloud
Steps to Follow For the First Example:¶
First Workflow checks the Customer’s PO No filed when creating a Customer Order record for Customer 1000 and prompt a User Form to enter the Customer’s PO No if it is blank.
1 Clone the DemoAddCustomerPONoExample Workflow as a new Workflow and deploy it. Then add the below projection action configuration for the deployed workflow.
2 Create new customer order with customer 1000, keep the other values as default and Customer’s PO No as blank.
3 Save the Customer Order record. Upon saving the record, Workflow User Form dialog will pop up to enter the Customer’s PO No.
4 Enter the Customer’s PO No and submit the Workflow User Form. Then refresh the page. Provided Customer’s PO No has been added to the newly created Customer Order record.
Steps to Follow For the Second Example:¶
Second Workflow checks the Customer’s PO No filed when creating a Customer Order record for Customer 1010 and prompt a validation error if it is blank.
1 Clone the DemoValidateCustomerPONoExample Workflow as a new Workflow and deploy it. Then add the below projection action configuration for the deployed workflow.
2 Create new customer order with customer 1010, keep the other values as default and Customer’s PO No as blank.
3 Save the Customer Order record. Upon saving the record, the validation error is triggered from the Workflow.