[jBPM] - jbpm 5.4 and simulation
by amadets
amadets [https://community.jboss.org/people/amadets] created the discussion
"jbpm 5.4 and simulation"
To view the discussion, visit: https://community.jboss.org/message/779324#779324
--------------------------------------------------------------
Hi,
I downloaded the latest version 5.4 officially shared.
I install using the ant install.demo.noeclipse. Everything is ok
next: ant start.demo.noeclipse and the whole starts and Everything is ok
I run google chrome and I type: localhost:8080/drools-guvnor
in default package create new "new BMPN Process".
I put on the process: Start -> Activities (Task) -> end
The properties tab for:
process - simulation -> Base Currency: USD
process - simulation -> Base time unit: minutes
Task -> Type: None
Task -> name: Task1
Task -> simulation -> Cost per time unit: 50
Task -> simulation -> Currency: USD
Task -> simulation -> Distribution Type: random
Task -> simulation -> Processing time (max): 10
Task -> simulation -> Processing time (min): 8
Task -> simulation -> Staff availabity: 2
Task -> simulation -> Time unit: minutes
Task -> simulation -> Working hours: 8
I click the validate process, message: There are not validation error
I click Run simulation:
Number of instance: 2
iterval: 2
Interval Units: minutes
and I click "Run simulation" get the message: Simulation engine did not return results.
I look to the jboss logs:
ERRORS:
Attribute 'type' must appear on element 'bpmn2:relationship'.
Cannot resolve 'drools:Scenario' to a type definition for element 'drools:Scenario'.
Cannot resolve 'drools:ScenarioParameters_._type' to a type definition for element 'drools:ScenarioParameters'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.
Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:WaitTime'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.
INFO:
Duration for activity 1 is avg: 554232.0; min: 554232.0; max:554232.0 count 1
Duration for end event is avg: 554232.0; min: 554232.0; max:554232.0
Duration for processs is avg: 554232.0; min: 554232.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]
Duration for activity 1 is avg: 546719.5; min: 539207.0; max:554232.0 count 2
Duration for end event is avg: 546719.5; min: 539207.0; max:554232.0
Duration for processs is avg: 546719.5; min: 539207.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]
SUMMARY Duration for end event is avg: 550475.75; min: 539207.0; max:554232.0 count 2.0
SUMMARY Duration for activity 1 is avg: 550475.75; min: 539207.0; max:554232.0 count 2.0
Duration for processs is avg: 550475.75; min: 539207.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]
what's wrong?
ask for any tips.
ts
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779324#779324]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[EJB3] - Bean Instance Pools
by Andrig Miller
Andrig Miller [https://community.jboss.org/people/andy.miller] created the discussion
"Bean Instance Pools"
To view the discussion, visit: https://community.jboss.org/message/779995#779995
--------------------------------------------------------------
During the development meeting in Brno in November, I was told that the bean instance pools were specific to each bean. For example, if you had two stateless session beans, let's just call them Bean A, and Bean B, you could define a strict max instance pool for each one. For the life of me I don't see how you can actually do this with the current schema.
There is nothing in the schema to associate a bean, by name or any other attribute, to a pool.
Is there a way to do this?
How does this really work? It appears that there is really just one pool, and everything shares it, even if there are multiple deployments.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779995#779995]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[jBPM] - JPBM persistence and transaction Questions
by Sam Mano
Sam Mano [https://community.jboss.org/people/artist123] created the discussion
"JPBM persistence and transaction Questions"
To view the discussion, visit: https://community.jboss.org/message/779673#779673
--------------------------------------------------------------
Hello,
I have some questions based on my understanding, please correct me if I am wrong, If I am right please guide me through my questions...thanks in advance...
h3. My Understanding:
task (taskid, session id) is belongs to process (process id , session id), task no longer valid without process reference (I am talking about persistence in JBPM)
h3. My questions?
1. Do we really need separate persistence.xml file for each humantask persistence and process persistence?
2. Why there is a two types of transaction used in this persistence (like JTA-process, resource local for - task)?
3. Is it possible to create one persistence.xml file to handle JBPM persistence (both process and humantask)?
4. Do I need two schema (one for process table and one for task tables)?
kindly invite you all to participate in this discussion...
thanks,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779673#779673]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[jBPM] - jBPM Designer won't save when validation fails
by Herman Post
Herman Post [https://community.jboss.org/people/hbpost] created the discussion
"jBPM Designer won't save when validation fails"
To view the discussion, visit: https://community.jboss.org/message/779224#779224
--------------------------------------------------------------
I was using the 2.4-Final release of the jBPM Designer, doing high level design and saving my work periodically, and all of a suddent a message appears saying "Unable to perform user action due to errors. Validate your process before saving...". Then it locked up and I lost my work. Does a process need to pass validation to save? This seems unreasonable if I'm just trying to lay out high level design. Here is the stack trace I got when it locked up:
16:23:38,417 ERROR [org.jbpm.designer.web.profile.impl.JbpmProfileImpl] (http-localhost-127.0.0.1-8080-26) null: java.lang.NullPointerException
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallSequenceFlow(Bpmn2JsonMarshaller.java:2469) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallFlowElement(Bpmn2JsonMarshaller.java:868) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallProcess(Bpmn2JsonMarshaller.java:480) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:372) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:208) [classes:]
at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:285) [classes:]
at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doPost(UUIDBasedRepositoryServlet.java:148) [classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779224#779224]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years