-
1. Re: Integrating custom webapp with jbpm-console
salaboy21 Feb 9, 2015 8:50 AM (in response to vinniman)Hi there,
what are you trying to achieve? what kind of integration?
You shouldn't deploy a webapp via the console-ng.
Deploying both apps in the same wildly should do the work. You need to make sure that both apps uses the same database and you will be able to see the same data in both.
Regards
-
2. Re: Integrating custom webapp with jbpm-console
vinniman Feb 9, 2015 9:06 AM (in response to salaboy21)Thank you for quick responce, Mauricio!
I want processes from my webapp to be displayed in "Process Management" tab in jbpm-console, and to be able to start those processes from the jbpm-console.
My app stores only logging info to database. And I don't see any effect when deploying both apps on same server with same datasource. Jbpm-console shows nothing.
May be i forgot to perform some configuration in my webapp to fully enable persistence?
Here is the config part from my spring config file:
<kie:kmodule id="kmodule">
<kie:kbase name="kbase" packages="bpmn" default="true">
<kie:ksession name="ksession" type="stateful" default="true">
<kie:processEventListener ref="kieDbLogger" />
<kie:configuration>
<kie:jpa-persistence>
<kie:transaction-manager ref="transactionManager"/>
<kie:entity-manager-factory ref="kieEntityManagerFactory"/>
</kie:jpa-persistence>
</kie:configuration>
<kie:workItemHandlers>
<kie:workItemHandler name="GateEventAction" type="eterra.ca.market.gate.gateeventactions.handler.GateEventActionHandler" />
<kie:workItemHandler name="SkipGateEventAction" type="eterra.ca.market.gate.gateeventactions.handler.SkipGateEventAction" />
</kie:workItemHandlers>
</kie:ksession>
</kie:kbase>
</kie:kmodule>
<bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor" />
<bean id="kieDbLogger" class="org.jbpm.process.audit.JPAWorkingMemoryDbLogger">
</bean>
-
3. Re: Integrating custom webapp with jbpm-console
swiderski.maciej Feb 9, 2015 1:00 PM (in response to vinniman)to be able to achieve that integration you need to package all your processes into kjar that can then be deployed to jbpm console and used within your application. The main requirement is that jbpm must be aware of the processes it can operate on. From version 6.2 that's easily achievable thanks to jbpm services that you can read up here. At the end of that article you will find a link to a complete application written with spring that does integrate with jbpm console.
HTH