[jBPM] - Restore JBPM session
by new bee
new bee [https://community.jboss.org/people/newbird] created the discussion
"Restore JBPM session"
To view the discussion, visit: https://community.jboss.org/message/750414#750414
--------------------------------------------------------------
Hi,
I am new to JBPM and struggling to understand the flow.............
I red that we can store jbpm session,process instance,task instance and variables...etc...............
After some point, assume application crashes and want to restore all running sessions how would i do?
Do i need to get each process id/session id from the session and again start it?
If i do in the above way, from which point it will start the session like it already proesses two nodes....How it will know to start from node3? Do i need to configure that also. If how would i?
Also red in discussions that after restoring the session, we need to again register action handlers? Is it true?
What is the use task server ,task service and task client? How they are different from workitem handler?
Please reply............................................. :-/
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750414#750414]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[jBPM] - User defined class type process variables
by Rahul Agrawal
Rahul Agrawal [https://community.jboss.org/people/rahulamt] created the discussion
"User defined class type process variables"
To view the discussion, visit: https://community.jboss.org/message/794624#794624
--------------------------------------------------------------
Hi,
How to define the process variables that are the of some user defined java class.
For example, I have a java class Foo. I want to have a process variable that is Foo class type.
Does anyone has any idea how the process definition(.bpmn2 file) will look like?
<itemDefinition id="_numberItem" structureRef="Foo" />
<process processType="Private" isExecutable="true" name="BPMN_Process" id="BPMN_Process">
<!-- process variables -->
<property id="number" itemSubjectRef="_numberItem"/>
Unable to generate action invoker. : org.drools.lang.descr.ProcessDescr@497062
org/drools/bpmn2/Process_org_drools_bpmn2_BPMN_ProcessReturnValueEvaluator1Invoker.java (12:385) : Foo cannot be resolved to a type
Do I need to import something extra? If so, how to do that. Please help.
When I try to load this process definition using
kbuilder.add(ResourceFactory.+newFileResource+(process),
ResourceType.
++BPMN2++);
**return** kbuilder.newKnowledgeBase();
I get the following exception.#####
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794624#794624]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
Re: [jboss-user] [jBPM] - Set up JBPM5.4 Final Installer to use MS SQL Server 2008 using JTDS
by Lisa DeSouza
Lisa DeSouza [https://community.jboss.org/people/lisadesouza89] commented on the document
"Set up JBPM5.4 Final Installer to use MS SQL Server 2008 using JTDS"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-47975#comment-11480
--------------------------------------------------
ok, thanks a lot. Figured it out. Had the database server running as a local service instead of network service. :)
But still loads of errors on jbpm-console: :(
* ERROR [org.reflections.Reflections] (MSC service thread 1-6) could not create Vfs.Dir from url. ignoring the exception and continuing: org.reflections.ReflectionsException: could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfs:/E:/CIBIL-JBPM/jbpm-installer/content/jbpm-gwt-console.war/WEB-INF/classes/ at org.reflections.vfs.Vfs.fromURL(Vfs.java:99)
* ERROR [org.reflections.Reflections] (MSC service thread 1-6) could not create Vfs.Dir from url. ignoring the exception and continuing: org.reflections.ReflectionsException: could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfs:/E:/CIBIL-JBPM/jbpm-installer/content/jbpm-gwt-console.war/WEB-INF/lib/activity-monitor-ui-lib-1.1.1.Final.jar/ at org.reflections.vfs.Vfs.fromURL(Vfs.java:99)
* ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-5) HHH000299: Could not complete schema update: java.lang.UnsupportedOperationException: The application must supply JDBC connections at org.hibernate.service.jdbc.connections.internal.UserSuppliedConnectionProviderImpl.getConnection(UserSuppliedConnectionProviderImpl.java:62)
* ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jbpm-human-task-war]] (MSC service thread 1-5) StandardWrapper.Throwable: javax.persistence.PersistenceException: No Persistence provider for EntityManager named org.jbpm.task
* ERROR [org.jbpm.integration.console.StatefulKnowledgeSessionUtil] (http-localhost-127.0.0.1-8080-5) Could not initialize stateful knowledge session: No Persistence provider for EntityManager named org.jbpm.persistence.jpa: javax.persistence.PersistenceException: No Persistence provider for EntityManager named org.jbpm.persistence.jpa at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:69)
* ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http-localhost-127.0.0.1-8080-5) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Session was not initialized, check previous errors in log at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) [resteasy-jaxrs-2.3.2.Final.jar:]
But at least with MSSQL the applications deploy. Sorry to be such a pain and keep asking questions.
--------------------------------------------------
13 years, 2 months
[jBPM] - Re: Restore JBPM session
by Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"Re: Restore JBPM session"
To view the discussion, visit: https://community.jboss.org/message/752944#752944
--------------------------------------------------------------
I think the process should continue from before application crash point.
Lets take the com.sample.evaluation included in the jbpm5.3 full installer.
First step, we initiate the process instance lets say we pass in krisv as the employee name
Second step, krisv look at his task list and then complete his task
Third step, john look at his task list and then complete his task
Fourth step, Mary look at her task list, but when she tries to complete her task, application crash.
so we stop everything and restart
After restart, Mary should be able to see the task in the task list and complete it.
Isn't that the default behavior right now? Or do I misunderstand your question?
Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/752944#752944]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[JBoss Web Services] - No-arg default constructor error when deploying Web Service
by Max Korn
Max Korn [https://community.jboss.org/people/developer251] created the discussion
"No-arg default constructor error when deploying Web Service"
To view the discussion, visit: https://community.jboss.org/message/791939#791939
--------------------------------------------------------------
Hi all !
I'm badly stuck with a weird exception that I get when I deploy a Webservice on JBoss As 7.1.1.
The Web Service itself is simple and returns in a method a List of Counters:
@XmlRootElement
public class Counter implements Serializable {
private Counter() {
}
private Counter(int price) {
this.price = price;
}
private int id;
private String desc
private int price;
. . . .
}
@WebService
public class CounterWS implements CounterWSItf, Serializable {
@Inject InfoService service;
@Override
public List<Counter> getCounters() {
return service.getCounters();
}
However I get the following exception once I deploy it:
*Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions*
*com.telco.model.Counter does not have a no-arg default constructor.*
* this problem is related to the following location:*
* at com.telco.model.Counter*
* at private java.util.List com.telco.ws.jaxws_asm.GetCounterssResponse._return*
* at com.telco.ws.jaxws_asm.GetCountersResponse*
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:298)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:141)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1157)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_31]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_31]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211) [rt.jar:1.6.0_31]
at javax.xml.bind.ContextFinder.find(ContextFinder.java:392) [rt.jar:1.6.0_31]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618) [rt.jar:1.6.0_31]
at org.apache.cxf.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:260)
at org.apache.cxf.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:169)
at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:423)
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:291)
... 24 more
As you can see, there is a default constructor in the Counter class. I've tried also removing the other constructor without success.
By removing the type <Counter> from the List it actually deploys but once I invoke it from the Client, I get another type of Error, that the Counter type is unknown (!!).
Is it a bug or something else I'm missing ?
Thanks a lot
Max
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/791939#791939]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months