The Automatic Workflow Launch project demonstrates the launching of a workflow from a server event or action.
A method is attached to the ItemType as an OnAfterAdd/OnAfterUpdate server event. When the item is saved with the Launch Workflow property set to 1, the method finds the Workflow Map by name, then instantiates and starts it. The same method is attached to the ItemType as an action, allowing the workflow to be launched using a menu choice.
Release | Notes |
---|---|
v1.1.1 | Updated Usage for Aras v12 |
v1.1.0 | Updated Tags for TOC List |
v1.0.1 | Tested 11.0 SP12, SP15. Tested on Edge, Firefox 60 ESR, Chrome. |
v1.0.0 | First release. Tested on Internet Explorer 11, Firefox 38 ESR, Chrome. Though built and tested using Aras 11.0 SP7, this project should function in older releases of Aras 11.0 and Aras 10.0. |
Project | Aras |
---|---|
v1.1.1 | 10.0+, 11.0+, 12.0+ |
v1.1.0 | 10.0+, 11.0+ |
v1.0.1 | 10.0+, 11.0+ |
v1.0.0 | 10.0 SPx, 11.0 SP7; Old Community Board Migration |
Always back up your code tree and database before applying an import package or code tree patch!
- Aras Innovator installed (version 12)
- Aras Package Import tool
- AutoWorkflowLaunch 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
..\AutoWorkflowLaunch\Import\imports.mf
file in the Manifest File field. - Select aras.labs.WorkflowAutomationExamples and aras.labs.AutoWorkflowLaunch 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.
You are now ready to login to Aras and try out the Automatic Workflow Launch action/event.
- Log in to Aras as admin.
- Navigate to Workflow Examples in the table of contents (TOC).
- Create a new Workflow Launch Example item.
- Click Done.
- Save/Unlock/Close in v11.
- Edit the item and check the Launch Workflow checkbox. Click Done.
- Unlock the item, check the checkbox and S/U/C in v11.
- Navigate to My Innovator > My Inbasket in the TOC.
- Search for the newly created assignment.
- Repeat steps 2-4.
- Choose the new item and run the Workflow Launch Example Action (under the More […] menu; Actions menu in v11)
- Navigate to My Innovator > My Inbasket in the TOC.
- Search for the newly created assignment.
As an alternative to checking My Inbasket, you can also determine whether an item has a workflow process from the item's form. On the item form, select Navigate > Workflow (View > Workflow for v11) from the menu to view the workflow process. The resulting dialog will show the workflow process, if it exists, or an empty grid if there is no workflow process for the item.
- 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
For more information on contributing to this project, another Aras Labs project, or any Aras Community project, shoot us an email at [email protected].
Original Aras community project written by Rob McAveney at Aras Corp.
Project rewritten for Aras 11.0 by Alexander Sklyarskiy. @asklyarskiy
Documented and published by Eli Donahue at Aras Labs. @elijdonahue
Aras Labs projects are published to Github under the MIT license. See the LICENSE file for license rights and limitations.