Cancel
Showing results for 
Search instead for 
Did you mean: 

Find the Workflow codefully

Dear Listers,

 

I am writing an custom rule handler and would like to assign the custom rule handler to the start of the workflow.

Would like to understand how can I check the name of the workflow codefully.

Here is what I am checking

 

ITK(retcode,EPM_ask_root_task(message.task,&tRootTask));


if(tRootTask != NULLTAG)
{
ITK(retcode,EPM_ask_attachments(tRootTask, EPM_target_attachment, &iTargetAttchmnt, &tAttchItemTag));
}


 

Before getting into the IF task I would like to find the name of the workflow.

Will it be possible with the Handler EPM_ask_name(RootTask, &root_name)?

 

Regards

Vilas

 

 

 

 

 

 

3 REPLIES

Re: Find the Workflow codefully

Phenom
Phenom

Good afternoon,
I think that you are on the right path and you should get a name, you need to try to do this on a test case.

Re: Find the Workflow codefully

Experimenter
Experimenter

The test went fine it worked. EPM_ask_name gives the name of the workflow to which the item is attached

 

Regards

Vilas

Re: Find the Workflow codefully

Phenom
Phenom

Good afternoon, I'm glad that you made it Smiley Happy