Sign in to Community
Sign in to view all badges
My usecase is to create a custom workflow activity which performs a specific(custom) logic for filtering multiple inbound records and generate its output.
For this, I have created a custom workflow activity and made changes in -
1. Extended Workflow Schema (Elements and Methods changes)
2. Input Form
3. Created a Custom Library JS code containing simple business logic
I was wondering how can I connect/map the workflow activity execution to my custom library js code.
Currently, while configuring the activity, I am able to see logs in web logs as its makes a soap call on leave as mentioned in input form.
But when starting the workflow it errors out on the custom activity (no clue as of which js method is getting invoked while execution)
Please let me know if the flow for creating a custom workflow activity is right as mentioned above or anything else needs to be done. I have been looking for answers in the forum.
Thanks in advance!
For xtk:workflow schema element:
<element name="foo" template="xtk:workflow:activity">
<attribute default="'/bar/foo.js'" name="library"/>
Create 2 functions in bar:foo.js global namespace:
For workflow activities when starting out I've found the crm connector activity to be the most useful reference.
There is way more code than needed and it's not consistent in how it integrates with Campaign, but in total it's comprehensive.