[jBPM Users] - Process design and execution without using jbpm-console ( jb
by makarandk502
Hi All,
I would like to run the simple process without using jbpm console using jBPM APIs and jsf/jsp forms
Start - task1 (without form) - task2 (with form) - subprocess - java - end
Need your advice/help on this
Here starting the process, moving from one task to another can be done using jBPM APIs.
But once process reaches at task2 with form, I would like to show the form and once user interaction/inputs are given, it should proceed further.
Till that time , it should wait as it happens automatically in jbpm console.
Basically if there is no user interaction through form, process flow can be controlled using jBPM APIs.
a. How should we achieve this if we dont use console.
b. Can anybody send me link of any such sample demo or application developed running without using console ?
c. Also user should login to his id and take appropriate action on the tasks without clicking on lot of buttons/links.
How to achieve the same ?
Basically in jbpm console, I dont need to worry much about such things as jbpm console takes care of these things.
But due to limitation of FTL templates, I am thinking of not using jbpm console.
-Regards
Makarand
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266083#4266083
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266083
16 years, 5 months
[JCA] - Re: Specifying a different WorkManager for a custom resource
by bortx
I have developed a work around on this issue and I want your opinion about it. It consist on the following.
1.- Deploy a service called custom-work-manager-service.xml defining a custom WorkManager with a custom thread pool with the following content
<server>
|
| <mbean code="org.jboss.util.threadpool.BasicThreadPool"
| name="custom.jca:service=CustomWorkManagerThreadPool">
| <!-- The name that appears in thread names -->
| <attribute name="Name">CustomWorkManager</attribute>
| <!-- The maximum amount of work in the queue -->
| <attribute name="MaximumQueueSize">10</attribute>
| <!-- The maximum number of active threads -->
| <attribute name="MinimumPoolSize">1</attribute>
| <!-- The maximum number of active threads -->
| <attribute name="MaximumPoolSize">10</attribute>
| <!-- How long to keep threads alive after their last work (default one minute) -->
| <attribute name="KeepAliveTime">60000</attribute>
| <!-- The behaviour when the queue is full -> the calling thread blocks until the queue has room -->
| <attribute name="BlockingMode">wait</attribute>
| </mbean>
|
| <mbean code="org.jboss.resource.work.JBossWorkManager"
| name="custom.jca:service=CustomWorkManager">
| <depends optional-attribute-name="ThreadPoolName">custom.jca:service=CustomWorkManagerThreadPool</depends>
| <depends optional-attribute-name="XATerminatorName">jboss:service=TransactionManager</depends>
| </mbean>
|
| </server>
2.- Accesing this work manager from my resource adapter and using it to submit works instead of the one that is provided by jboss in the BootstrapContext:
WorkManager customWorkManager = null;
| try {
| MBeanServer server = MBeanServerLocator.locateJBoss();
| customWorkManager = (WorkManager) server.getAttribute(new ObjectName(
| "custom.jca:service=CustomWorkManager"), "Instance");
| } catch (MalformedObjectNameException e) {
| // TODO
| } catch (Exception e) {
| // TODO
| }
What do you think about it?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266040#4266040
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266040
16 years, 5 months