-
1. Re: How to prevent user code be cached?
mwohlf Nov 5, 2010 1:34 PM (in response to billmeng70)Hi Bo,
you set it in your jbpl definition, check out the testcases,
this is an example from Huisheng Xu's CacheParsingTest.java:
<process name='MyProcess' xmlns='http://jbpm.org/4.4/jpdl'>
<start name='start'>
<transition name='myTransition' to='end'>
<event-listener class='com.comp.MyEventListener' cache='disabled'/>
</transition>
</start>
<end name='end'/>
</process> -
2. Re: How to prevent user code be cached?
billmeng70 Nov 5, 2010 1:52 PM (in response to mwohlf)Thanks a lot Michael,
Does that mean if I have a below jbpl file, I need set like that?
<?xml version="1.0" encoding="UTF-8"?>
<process name="retrieveCatalog" xmlns="http://jbpm.org/4.0/jpdl">
<start>
<transition to="retreiveCatalogRequest"/>
</start>
<custom name="retreiveCatalogRequest" class="com.mytest.workflow.activity.MakeServiceRequest" cache="disabled">
<property name="requestName">
<string value="retrieveCatalog"/>
</property>
<property name="requestData">
<map>
<entry>
<key><string value="application"/></key>
<value><object expr="#{requestData.application}"/></value>
</entry>
<entry>
<key><string value="product"/></key>
<value><object expr="#{requestData.product}"/></value>
</entry>S
<entry>
<key><string value="loyaltyProgram"/></key>
<value><object expr="#{requestData.loyaltyProgram}"/></value>
</entry>
<entry>
<key><string value="catalogKey"/></key>
<value><object expr="#{requestData.type}"/></value>
</entry>
</map>
</property>
<property name="springContextPath">
<string value="serviceApplicationContext.xml"/>
</property>
<property name="responseKey">
<string value="catalogResponse"/>
</property>
<transition to="retreiveCatalogResponse"/>
</custom>
-
3. Re: How to prevent user code be cached?
mwohlf Nov 5, 2010 1:58 PM (in response to billmeng70)well my eyes are still bleeding from looking at your messy xml,
but as far as I can tell cache should work for the custom tag
-
4. Re: How to prevent user code be cached?
billmeng70 Nov 5, 2010 3:05 PM (in response to billmeng70)It works!