JBoss Community

create a new query method in TaskService

created by parvathy j a in jBPM - View the full discussion

hi i want to create a new method to query the database according to a new column
created by me in JBPM4_TASK table..i added the following query in the jbpm.task.hbm.xml file

  <query name="findTasksByServiceName">
    <![CDATA[
     select task
     from org.jbpm.pvm.internal.task.TaskImpl as task where task.serviceName =:serviceName
    ]]>
  </query>


Can someone tell me where all i should make changes and what should
i do to get this query as a new method in TaskService API
ie when i create a object of TaskService i must get a
method to call this query and exceute it..


Thanks in advance
Parvathy

Reply to this message by going to Community

Start a new discussion in jBPM at Community