Hi Philipp,
I had the same request. I solved the Problem by overwriting the Archive Function in WfUi.
I created a new Project with a callable sub process with the Input parameter of Icase and I task. In this process I first check the process code to know which Dialog I have to start.
Depending on the ivy project I want to show the dialog from, I get the data of the case or task via ivy api.
after I got the process data I start the dialogs with a userdialog step in the process.
Here the code snippet to get the processdata of a task.
if (in.data.tmpTask.getState().name().toLowerCase()=="done")
{
data=in.data.tmpTask.getEndProcessData() as ForeignInvestData;
}
else
{
data=in.data.tmpTask.getStartProcessData() as ForeignInvestData;
}
best regards
Roland