cancel
Showing results for 
Search instead for 
Did you mean: 

Executing Asynchronous Processes from exception point

sankardunga
Champ in-the-making
Champ in-the-making
Hello,

I have multiple service tasks in my process. I'm not able to re-execute the job from exception point of particular task.

I'm using ''managementService.executeJob(id)'' for executing the particular job, here it is executing the process from service task1.

How to run the job from the exeception point of a process ?

Thanks in advance…Smiley Happy


26 REPLIES 26

frederikherema1
Star Contributor
Star Contributor
Look at the CAUSE of the exception, that should contain your Exception. Use that exception instead, to store

sankardunga
Champ in-the-making
Champ in-the-making
Great thanks frederikheremans. I have one more issue,
I need to get list job ids based on some condition like following..
select Id_ from ACT_RU_JOB J where J.EXECUTION_ID_ in (select EXECUTION_ID_ from ACT_RU_VARIABLE v where v.TEXT_="404");

Do we have any API to run this native sql quries to get listed jobs ?
Or any other api is there to get jobs based on filter ACT_RU_JOB.TEXT_ like this….


jbarrez
Star Contributor
Star Contributor

sankardunga
Champ in-the-making
Champ in-the-making
Great to hear and thanks  jbarrez.
Expected date of Activiti 5.15 release ?

And is it possible to use this implementation with Activiti 5.13 ?

I mean If we can implement the ExecuteCustomSqlCmd & CustomSqlExecution (from your blog) classes outside of Activiti and by triggering the execute method manually. Here I need Commandcontext instance from Activiti, Is it possible to get "context" object from Actitivi ?

thanks in advance…..Smiley Happy

jbarrez
Star Contributor
Star Contributor
5.15 is scheduled for mid-february.

But yes! You can use the command and other related classes in activiti 5.13, they are backwards conpatible.
Give the command to the ManagementService, and you dont need to worry about the context.

sankardunga
Champ in-the-making
Champ in-the-making
Hi frederikheremans & jbarrez,
How are you doing ?

I have small doubt.
Is it possible deploy all the BPMN files at a time by specifying folder location?

Thanks & Regards
Sankar

jbarrez
Star Contributor
Star Contributor
Yes, you need to add the resources to the DeploymentBuilder (the folder scanning, you will need to do yourself)