Hyland Rocket RPA API Trigger Example
This is a (not so) simple example of how to trigger a new task from a UnityScript and anywhere you can use them within OnBase (like workflows)
Consider this script as a work in progress!
The OnBaseRocketUnityScriptTrigger
Find the file here (AccessToken): https://raw.githubusercontent.com/marchorst/Hyland.Rocket.RPA.ApiHelper/main/example/OnBaseRocketUnityScriptTrigger.cs
Or with username and password (Deprecated): https://raw.githubusercontent.com/marchorst/Hyland.Rocket.RPA.ApiHelper/main/example/OnBaseRocketUnityScriptTriggerWithUsernameAndPassword.cs
How to use it
Quickstart
Create a new IClientWorkflowScript (or any other you want to use, just make sure you adapt the interface) and name it ‘OnBaseRocketUnityScriptTrigger’ / ‘OnBaseRocketUnityScriptTriggerWithUsernameAndPassword’ - after that you can just copy the content into the OnBase Studio Editor, add some references and that’s it.
A bit more details
First click on “Scripts+”
Set the correct name ‘OnBaseRocketUnityScriptTrigger’
Select the type of the script ‘IClientWorkflowScript’ - The script is ready for the type IClientWorkflowScript, but can be quickly adapted in the script for other types as well (As long as you know what you are doing and why ;-) )
Edit the parameters in the first section.
Be sure to include all those references.
For more information about embedding the DLL, see the main docs.