Hi,
I am using activiti in my spring web application. I was created one listener with implements of TaskListener like as below.
public class MyEventListener implements TaskListener {
public void notify(DelegateTask delegateTask) {
List list = delegateTask.getExecution().getEngineServices().getRuntimeService().createNativeExecutionQuery().sql("select * from act_custom_process").list();
for (Object object : list) {
System.out.println("object: "+object);
}
}
}
}
Here i would like to execute sql query. Now, how can i get the database table fields.
Thanks
If you are writing in Java, you can realize it in your preferred way without using Activiti's features in particular.
However, if you want to do with the function of Activiti, I think that the following will be helpful.
http://www.jorambarrez.be/blog/2014/01/17/execute-custom-sql-in-activiti/
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.