Set a lot or sublot for a material requirement
The following procedure is an example of how to create a workflow that specifies a material lot or sublot for a material requirement that is part of a work request.
Before you begin
Procedure
- Add a workflow that will be used to set a material lot or sublot for a material requirement.Note: Activities can be inserted at both the workflow and subprocess levels.
- Insert an activity:
- At the workflow level:
- From the Standard Activities panel, click and drag the activity you want to insert to a drop point.Note: Activities can exist only between the presubprocess and postsubprocess.
- From the Standard Activities panel, click and drag the activity you want to insert to a drop point.
- At the subprocess level:
- Double-click the local subprocess you want to add the activity to.
- From the Standard Activities panel, click and drag the activity you want to insert to a drop point.
- At the workflow level:
- On the activity configuration panel, click Configure Method. The Configure Method dialog box appears, displaying a list of the available call method service providers.
- Double-click IProductionRuntime to display the list of available call methods.
- Click CreateWorkRequest, and then click Finish.The input parameters appear in the activity configuration panel.
- Optionally:
- In the Description field, enter a description or expression, or bind a property or parameter to the method.
- In the S95 ID field, enter a name or expression, or bind a property or parameter to the method.
- In the Work Definition field, click the ellipsis button, and then select a work definition.
- Click Save.
- Insert another Call Method activity after the CreateWorkRequest call method.
- On the activity configuration panel, click Configure Method.The Configure Method dialog box appears, displaying a list of the available call method service providers.
- Double-click IProductionRuntime to display the list of available call methods.
- Click ReadSegmentRequirements, and then click Finish.The input parameters appear in the activity configuration panel.
- Configure the call method as follows:
- Insert an Index activity after the ReadSegmentRequirements call method and configure it to read from the collection returned by the ReadSegmentRequirements call method.
- Insert a ForEach activity after the Index activity, and then configure it as follows:
- Insert a Call Method activity inside the ForEach activity, and then configure it as follows:
- Insert an Index activity inside the ForEach activity, below the QueryMaterialLots (or QueryMaterialSublots) call method, and configure it to read from the collection returned by the call method.
- Insert a Call Method activity inside the ForEach activity, below the Index activity, and then configure it as follows.
- Click Save.
- Run the workflow, or, on the Test/Debug tab, test the workflow to ensure that your input parameters are configured correctly.
What to do next
Note: If you perform a ReadSegmentRequirements call method on this work request after running this workflow, it will return the lots and/or sublots that you set on the work request's material requirements.