Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Getting process id from SOAP invocation

Avatar

Level 7

Is there a way to get a processid as a SOAP response when invoking a long lived process? This was possible in LC 7.2.

Aditya

6 Replies

Avatar

Level 10

What makes you difficult here?

Add a process variable (OUT) and assign the process id to it using Assign Task activity. That should return the Process Id as SOAP response.

Nith

Avatar

Level 7

The process is long lived and, I was using invokeAsync all this while. Changing to invoke didn't work as it wouldn't allow me to start the process and the output variable is not available through invokeAsync.

Aditya

Avatar

Former Community Member

can anybody please comment on this? I have another question...when should I use JobManager and when should i use TaskManager APIs?

What is the significance of process id? Does it signify the process or it signifies the process instance? Please explain.

- Avi

Avatar

Level 10

The invokeAsyn() method will return an invocation_id value. Isn't it?

Can you use that and query the Process Manager to get the Process Id later?

Nith