Skip to main content
arivarasua923571
May 3, 2023
Question

Unarchive sub Process

  • May 3, 2023
  • 7 replies
  • 0 views

Dear All,

Based on process instance ID I have unarchived the main process model but in the main process it has some sub process model also, I need to unarchive the sub process model. Kindly guide me How to unarchive the sub process. 

Thanks in advance. 

7 replies

May 3, 2023

Can't you do the same thing which you are doing in the main process in Sub processes too? Or store the process instance Id of sub process in a pv! and take it as output in main process?

arivarasua923571
May 3, 2023

Dear [mention:3a56ed849ae7445ababc9b93cfbb0d4f:e9ed411860ed4f2ba0265705b8793d05]

Thanks for your input and this will work. But issue I am facing is like I want to open the completed archived instance and yours input will work for new one. Is there any other way?

May 3, 2023

How you are unarchiving the main process? Taking out process Instance Id of main process and calling another process which will Unarchive it I assume. So, in the same manner you will get the process Instance Id of subprocess (after completion if this is called as synchronous subprocess) in main process and then take all these instance IDs (main process and sub processes) wherever you are unarchiving the processes. Please add more details if I'm missing anything here.

And FYI, my name is Sanchit not Sanchita

harshitb6843
May 3, 2023

Do you have a cloud environment or an on-premise? 

arivarasua923571
May 3, 2023

Dear [mention:ef600ff8f5d2497eb2def2126dc89484:e9ed411860ed4f2ba0265705b8793d05]

It happens in On-Premise.

stewart.burchell
May 3, 2023

I'd be more interested in the "why?" of this request. What are you intending to do with the unarchived process instances? I see a lot of folk trying to use these to conduct audits of what happened. Best practice is to design an audit trial into your applications and write those as stateful events into a database table. It's very hard / extremely difficult in a lot of applications to work out what's happened by examining completed process instances.