[jBPM] - Display next task form with out going to the tasks list page
by S Jegan
S Jegan [https://community.jboss.org/people/jegan] created the discussion
"Display next task form with out going to the tasks list page"
To view the discussion, visit: https://community.jboss.org/message/647373#647373
--------------------------------------------------------------
Hi All,
We are planning to use JBPM 5.2 for our work flow requirements. Our goal is to integrate JBPM Process Engine inside our application. We will use Guvnor to design the process, but want to build the functionalities offered by jbpm console within our application instead of using it.
The question here is, if it is possible to get the next task form and display it (without the user going to the task list and pick the task) when the user is completed with the current task. For example, please consider the below scenario.
Start ---> Human Task 1 ---> Script Task 1 ---> Human Task 2 ---> End
Assume both the tasks are assigned to the same user called "sales_rep". Now, when sales_rep wants to complete "Human Task 1", we display the task form to him so he completes task 1. With this, the process instance reaches "Human Task 2". Usually the user closes the task form for task 1, goes back to the task list, selects "Human Task 2" and starts exeucting it.
Our requirement is that if the next human task is also assigned to the same user (which in this case is true), the task form for the next task ("Human Task 2") should also be displayed immediately with out the user having to go back to task list and picking the next task. This way, the transition is smooth and the user is not aware that he is involved in a work flow.
Is this possible? And is this correct, what we are trying to achieve? If yes, please direct me to some samples or links if available.
And thanks a lot for patiently reading this and replying :)
Regards,
Jegan
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647373#647373]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[Performance Tuning] - Re: Cpu 100% and GC is running
by sreenivas arumilli
sreenivas arumilli [https://community.jboss.org/people/arumilli] created the discussion
"Re: Cpu 100% and GC is running"
To view the discussion, visit: https://community.jboss.org/message/647363#647363
--------------------------------------------------------------
Hi,
I changed the JVM setting and able tp see the perfomance of my system was much improved. But still I am having 100% cpu usage with GC.
Our JVM permaters are :
-Dprogram.name=run.sh
-Dprogram.name=run.sh
-Xms3872m
-Xmx3872m
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-XX:NewSize=1278m
-XX:MaxNewSize=1278m
-Djava.net.preferIPv4Stack=true
-XX:MaxPermSize=256m
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-Djavax.net.ssl.trustStore=/opt/properties/.keystore
-Djavax.net.ssl.trustStorePassword=changeit
-Dcom.sun.management.jmxremote.port=8888
-Djava.rmi.server.hostname=192.168.100.39
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote
-XX:+PrintGCDetails
-Xloggc:/opt/gc.log
-XX:+UseTLAB
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-Xss256k
-Djava.net.preferIPv4Stack=true
-Djava.endorsed.dirs=/opt/jboss-4.2.3.GA//lib/endorsed
We observered GC logs and found the below lines are causing CPU 100% usage.
25074.643: [GC [1 CMS-initial-mark: 1349040K(2656256K)] 1350761K(3963712K), 0.0072300 secs]
25074.650: [CMS-concurrent-mark-start]
25075.310: [CMS-concurrent-mark: 0.659/0.659 secs]
25075.310: [CMS-concurrent-preclean-start]
25075.320: [CMS-concurrent-preclean: 0.010/0.010 secs]
25075.320: [CMS-concurrent-abortable-preclean-start]
CMS: abort preclean due to time 25076.377: [CMS-concurrent-abortable-preclean: 0.175/1.057 secs]
25076.391: [GC[YG occupancy: 63977 K (1307456 K)]25076.391: [Rescan (parallel) , 0.1988790 secs]25076.589: [weak refs processing, 0.3584420 secs] [1 CMS-remark: 1349040K(2656256K)] 1413018K(3963712K), 0.5868910 secs]
25076.978: [CMS-concurrent-sweep-start]
25077.978: [CMS-concurrent-sweep: 1.000/1.000 secs]
25077.978: [CMS-concurrent-reset-start]
25077.986: [CMS-concurrent-reset: 0.008/0.008 secs]
Can you suggest why it getting aborted and what we need to do to prevent this.
Arumilli
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647363#647363]
Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - Action script - how to invoke an executable?
by olddave
olddave [https://community.jboss.org/people/olddave] created the discussion
"Action script - how to invoke an executable?"
To view the discussion, visit: https://community.jboss.org/message/647418#647418
--------------------------------------------------------------
Hi,
This action script will give you the idea of what I need to do
[code]
String osname = System.getProperty("os.name");
if(osname.equals("Linux")) {
Runtime.getRuntime().exec("wineconsole --backend=user "/vendor_files/bbg_ps_enc/des.exe -D -u -k \"xcvfrew\" /vendor_files/bbg_ps_enc/equity_desc.enc.out /vendor_files/bbg_ps_out/equity_desc.out");
} else if(osname.indexOf("Windows") == 0) {
Runtime.getRuntime().exec("cmd /c C:/vendor_files/bbg_ps_enc/des.exe -D -u -k \"xcvfrew\" C:/vendor_files/bbg_ps_enc/equity_desc.enc.out C:/vendor_files/bbg_ps_out/equity_desc.out");
}
[/code]
The Window specific command works fine. The Linux command never works.
I have substituted the Linux cd with this "/vendor_files/bbg_ps_enc/rundes.sh" and that does not work either. Where rundes.sh has
[code]
#!/bin/bash
wineconsole --backend=user /vendor_files/bbg_ps_enc/des.exe -D -u -k "xcvfrew" /vendor_files/bbg_ps_enc/equity_desc.enc.out /vendor_files/bbg_ps_out/equity_desc.out
[/code]
I have tried both mvel and java types for the Action script
I have tried
[code]
"/bin/bash -c 'wineconsole --backend=user "/vendor_files/bbg_ps_enc/des.exe -D -u -k \"xcvfrew\" /vendor_files/bbg_ps_enc/equity_desc.enc.out /vendor_files/bbg_ps_out/equity_desc.out'"
[/code]
I tried adding the full path for wineconsole too, no change.
And all combinations of the above. All these commands work perfectly inside a shell window. These techniques have been gleaned from a number of articles on the web about how to use Runtime.exec, but they do not appear to work within Drools
So is it possible? If so how?
Thx.
Ed
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647418#647418]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - jBPM 5.2 issue Jboss7.1Beta
by pushpak1981
pushpak1981 [https://community.jboss.org/people/pushpak1981] created the discussion
"jBPM 5.2 issue Jboss7.1Beta"
To view the discussion, visit: https://community.jboss.org/message/646636#646636
--------------------------------------------------------------
Hi
We have setup jBPM5.2 on JBoss7.1Beta when we try to execute sample business process we get the following error.
Caused by: java.lang.IllegalAccessException: Class org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer can not access a member of class org.jboss.stdio.StdioContext$DelegatingPrintStream with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.reflect.Method.invoke(Method.java:588)
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:1093)
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:982)
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:375)
... 114 more
Below is the sample bpmn we are trying to deploy:
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="Definition"
targetNamespace="http://www.jboss.org/drools"
typeLanguage="http://www.java.com/javaTypes"
expressionLanguage="http://www.mvel.org/2.0"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
xmlns:tns="http://www.jboss.org/drools">
<process processType="Private" isExecutable="true" id="com.sample.bpmn.hello" name="Hello World" >
<!-- nodes -->
<scriptTask id="_2" name="Hello" >
<script>System.out.println("Hello World");</script>
</scriptTask>
<startEvent id="_1" name="StartProcess" />
<endEvent id="_3" name="EndProcess" >
<terminateEventDefinition/>
</endEvent>
<!-- connections -->
<sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
<sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" />
</process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="com.sample.bpmn.hello" >
<bpmndi:BPMNShape bpmnElement="_2" >
<dc:Bounds x="96" y="16" width="80" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_1" >
<dc:Bounds x="16" y="16" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_3" >
<dc:Bounds x="206" y="17" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="_1-_2" >
<di:waypoint x="40" y="40" />
<di:waypoint x="136" y="40" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_2-_3" >
<di:waypoint x="136" y="40" />
<di:waypoint x="230" y="41" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
Are we missing any configuration for JBoss7 ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646636#646636]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months