0 Replies Latest reply on Apr 15, 2019 4:59 AM by juhi.gupta

    I want to run a class file on deployment of JBPM 7 process in KIE Workbench

    juhi.gupta

      I have to run a class file on deployment of the JBPM Process in Business central Workbench, ie. on init of the process,so that it can be used in every workitem rather than loading everytime for each workitem.

       

      I have already placed the file inside the src folder of the project.I tried adding in remotable-classes of the deployment descriptor of the Project,but of no luck.It does not run the class file.

       

      Kindly find my kie-deployment-descriptor file:

       

          <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

          <deployment-descriptor xsi:schemaLocation="http://www.jboss.org/jbpm    >deployment-descriptor.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema->instance">

          <persistence-unit>org.jbpm.domain</persistence-unit>

          <audit-persistence-unit>org.jbpm.domain</audit-persistence-unit>

          <audit-mode>JPA</audit-mode>

          <persistence-mode>JPA</persistence-mode>

          <runtime-strategy>SINGLETON</runtime-strategy>

          <marshalling-strategies/>

          <event-listeners/>

          <task-event-listeners/>

          <globals/>

          <work-item-handlers/>

          <environment-entries/>

          <configurations/>

          <required-roles/>

          <remoteable-classes>

              <remoteable-class>com.myspace.processname.Maps</remoteable-class>

              <remoteable-class>com.myspace.processname.MapsLoad</remoteable-class>

          </remoteable-classes>

          <limit-serialization-classes>true</limit-serialization-classes>

          </deployment-descriptor>