Determine the Community or Domain used to start a workflow instance
Does anyone have the code that can be used to show which Community and/or Domain a given workflow instance was started from?
What API is used along with the related import statements
Thanks in Advance
robertinnes11
Posted 2 years ago · Edited 1 year ago·Last reply 2 years ago
4 comments
stefan_busch
·2 years ago · EditedIf you start the workflow from a community / domain / asset via the action button you can use the item bean.
So item.id would give you the the UUID from it.
You find the documentation of it not in the Core API but in the Workflow API.
The interface is
robertinnes11
OP2 years ago · EditedI would be obliged if you please provide me with a working snippet of code including the import statement and the code used to get the community UUID (I am using groovy)
The workflow will be deployed so that it runs only from within a Community. It will appear on the Actions list as you mentioned
Please note I am after the Community id . I am not after the id that belongs to any Collibra Asset (e.g. Business Term or Acronym)
Regards
Bobby
stefan_busch
·2 years ago · EditedHi,
is all the code that you need and you will not need any import statements for it.
The method will return the UUID of the community.
robertinnes11
OP2 years ago · EditedSo I just used this code in the end and it works fine