AnsweredAssumed Answered

How to get the table fields?

Question asked by vamsinipun on Dec 28, 2017
Latest reply on Dec 28, 2017 by daisuke-yoshimoto

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

Outcomes