Select to view content in your preferred language

How to connect to a Workflow Manager Portal and Item in order to get a list of jobs?

236
2
01-27-2025 02:05 PM
Gfreitag
Emerging Contributor

Hello,

I'm trying to create an addin which contains a button. When pressed, this button will launch a Workflow Manager job in Pro. First, I gather I need to be able to get a WorkflowClientModule, or create a WorkflowConnection (I'm still a bit unsure). However on the WorkflowModule.ConnectAsync() method, a caveat reads "A workflow connection instance should already exist in the project. If not, add a workflow connection prior to calling this method." How would I do this?

I notice that I need to select both a portal and a workflow item in Pro, if I were to do this manually. I'm not sure how to do this using the SDK.

I'm already a bit confused, because a lot of the documentation out there is for Workflow Manager (Classic). Thank you in advance!

Tags (3)
0 Kudos
2 Replies
Gfreitag
Emerging Contributor

I clarified the issue for myself slightly, I realize I am required to connect to the portal and workflow item in Pro directly to be able to get a list of jobs or other tasks. I would still like to be able to connect programmatically, if possible.

0 Kudos
LalaineLam
Esri Contributor

@GfreitagWe do not expose a way to programmatically connecting to a workflow item outside of interacting with the Workflow Pane. However, this is good feedback which I will bring back to the team.

Thank you.

Workflow Manager Team