This sample shows a way to start a different workflow based on the Product Line specified during creation of ECR item.
This project and the following release notes have been migrated from the old Aras Projects page.
Release | Notes |
---|---|
v2.0.0 | Workflow Method Update. Tested on Aras 11.0 SP12 and SP15. |
v1 | Initial Release |
Project | Aras |
---|---|
v2.0.0 | Aras 11.0 SP12+ |
v1 | Aras 9.2.0 SP3 |
Always back up your code tree and database before applying an import package or code tree patch!
- Aras Innovator installed
- Aras Package Import tool
- ProductLineBasedWorkflow import package
- Backup your database and store the BAK file in a safe place.
- Open up the Aras Package Import tool.
- Enter your login credentials and click Login
- Note: You must login as root for the package import to succeed!
- Enter the package name in the TargetRelease field.
- Optional: Enter a description in the Description field.
- Enter the path to your local
..\ProductLineBasedWorkflow\Import\imports.mf
file in the Manifest File field. - Select all in the Available for Import field.
- Select Type = Merge and Mode = Thorough Mode.
- Click Import in the top left corner.
- Close the Aras Package Import tool.
- Login to Aras as admin.
- Navigate to Administration > ItemTypes in the TOC.
- Search for the "ECR" ItemType and open for editing.
- In the "Properties" tab of the ECR ItemType click New Relationship icon to create a new Property with the following specifics:
- Label: Product Line
- Name: product_line
- Data Type: List
- Data Source[…]: Product Line Workflow List (Note: This List is imported in step 1 above)
- Required: checked
- In the “Server Events” tab select Pick Related and click New Relationship icon.
- In the resulting Search Dialog, search and select ProductLine Workflow Instantiate Method(Note: This Method is imported in step 1 above).
- In the Event column select onAfterAdd from the drop-down list.
- In the Workflows tab add ECR2 and ECR3 Workflows. ECR Workflow should already be there.
- Note: Make sure NONE of the Workflows is selected as Default (uncheck all the Checkboxes).
- Save, Unlock, and Close the ECR ItemType.
- Navigate to Administration > Forms in the TOC.
- Search for the ECR Form and open it for editing.
- Add the newly added Property (product_line) to the form and label the field “Product Line”.
- Save, Unlock, and Close the ECR Form.
- Create an instance of “ECR” ItemType.
- Since the property represented by the field in the form labeled “Product Line” is Mandatory, select one of the options in the drop-down List. The selected option will determine the specific Workflow process that is started.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Created by Aras Corporation Support.
Published to Github under the MIT license. See the LICENSE file for license rights and limitations.