[jBPM] - DropDowns for Service Nodes/Work Item Defintions In Guvnor Web Designer(Oryx)
by Ikram Babai
Ikram Babai [https://community.jboss.org/people/ikrambabai] created the discussion
"DropDowns for Service Nodes/Work Item Defintions In Guvnor Web Designer(Oryx)"
To view the discussion, visit: https://community.jboss.org/message/828500#828500
--------------------------------------------------------------
Hello Everybody,
We are using Guvnor primarily as a BPMN2 Process Repository with jBPM - For Service Nodes, the Oryx Deisgner that is embedded (and deployed as separate application) has a way to work with Work Item Defintions files that we create in Gunvor - My problem is that I need to be able to let the user select a value only from a selected list of values.
My wid is like the - see the EnumDataType defined - the source code says the string passed into its constructor is a "className" - where do I put that class? I suspect it must point to a file Model Pojo jar that you can upload - but Can't there be an easy way - I really was fascinated to see the Enumeration in the Create New menu item - Is there a way to use Enumeration in this Wid and the Oryx will have it displaced as a combo?
[
"name" : "JBpm5ESBDef7",
"parameters" : [
"ServiceCategory" : new StringDataType(),
"ServiceName" : new EnumDataType("classname?"),
"CompleteTask" : new StringDataType(),
"FromUri" : new StringDataType(),
"RelatesToUri" : new StringDataType(),
"ActionUri" : new StringDataType(),
"ReplyToUri" : new StringDataType(),
"FaultToUri" : new StringDataType()
],
"displayName" : "JBpm5ESBDef7",
"icon" : " http://titan.homer.att.com:61680/drools-guvnor/rest/packages/HiveProcesse... http://localhost:8080/drools-guvnor/rest/packages/HiveProcesses/assets/de..."
]
Pictorially (if not worth a thousand, I'm sure its worth a hundred words), all I need is what's show in the image below - I have been searching and found out the following two Jiras - I just hope they do not stand as bugs any more in version jBPM version 5.4 suite that are using.
https://community.jboss.org/message/826811#826811?_sscc=t https://community.jboss.org/message/826811?_sscc=t
https://bugzilla.redhat.com/show_bug.cgi?id=853042 https://bugzilla.redhat.com/show_bug.cgi?id=853042
https://community.jboss.org/servlet/JiveServlet/showImage/2-828500-21169/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-828500-21...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/828500#828500]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[jBPM] - Getting started in JBPM 6
by Alexander Herwix
Alexander Herwix [https://community.jboss.org/people/herwix] created the discussion
"Getting started in JBPM 6"
To view the discussion, visit: https://community.jboss.org/message/828445#828445
--------------------------------------------------------------
Hey jbpm experts,
I'm tasked with implementing a bpm system at work and after a lot of research I finally settled on the upcoming JBPM 6 as the basis for the project (love the integration with drools and the unified repository approach). However, having started to work with beta version I find it hard to really get a grip on the project. I have no experience (except reading large parts of the userguide) in jBPM 5.x as of yet and I'm really troubled by the lack of documentation/getting started guides for version 6. I'm doing my best using the old documentation, however it's really uncomfortable to just scramble everything together and hope that nothing has changed too much...
Do you have an ETA for more Docs on 6? Or even better maybe a roadmap for the development of version 6 (release time frames, etc)? If you need any help compiling this information into blog posts, wiki entries or the like, I would be glad to help!
Cheers, Alex
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/828445#828445]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[IronJacamar] - increase in open cursor (oracle11g)
by bruno bruno
bruno bruno [https://community.jboss.org/people/hohokampeople] created the discussion
"increase in open cursor (oracle11g)"
To view the discussion, visit: https://community.jboss.org/message/828439#828439
--------------------------------------------------------------
Hi
We have just migrated to JBoss AS 7.1.1.Final. However we've been encountering an increase in open cursor.
Do we need to update the jdbcadapter (current version used IronJacamar 1.0.9.Final)?
Here's sample of our dataSource Config:
<xa-datasource jndi-name="java:DataSourceXS" pool-name="ExampleXADS">
<driver>oracle</driver>
<xa-datasource-property name="URL">jdbc:oracle:thin:@UMSQUAL:1521:oradb1</xa-datasource-property>
<xa-pool>
<min-pool-size>8</min-pool-size>
<max-pool-size>32</max-pool-size>
<prefill>true</prefill>
</xa-pool>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</xa-datasource>
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
<stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
</validation>
<timeout>
<blocking-timeout-millis>5000</blocking-timeout-millis>
</timeout>
<drivers>
<driver name="oracle" module="com.oracle.ojdbc6">
<xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
</driver>
</drivers>
<driver name="oracle" module="com.oracle.ojdbc">
</driver>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/828439#828439]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[jBPM] - Unable to get Session Snapshot
by abadr
abadr [https://community.jboss.org/people/abadr] created the discussion
"Unable to get Session Snapshot"
To view the discussion, visit: https://community.jboss.org/message/828386#828386
--------------------------------------------------------------
Hi,
I am new to JBPM and I am trying to build a stateful workflow process (stateless is working just fine) with two Email Tasks and one signal event (see attached file that includes the Java file and the bpmn file. When I try to start the process and when it reaches the wait state and try to save the current session, I get the following exceptions thrown (I tried to google this problem but with no success so far):
0 17/07 12:42:06,152[main] ERROR drools.persistence.SingleSessionCommandService.rollbackTransaction - Could not commit session
java.lang.RuntimeException: Unable to commit transaction
at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:182)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcessInstance(CommandBasedStatefulKnowledgeSession.java:237)
at com.sample.UploadDocumentWorkflowProcessMain.main(UploadDocumentWorkflowProcessMain.java:79)
Caused by: javax.persistence.PersistenceException: java.lang.RuntimeException: Unable to get session snapshot
at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:516)
at bitronix.tm.BitronixTransaction.fireBeforeCompletionEvent(BitronixTransaction.java:478)
at bitronix.tm.BitronixTransaction.commit(BitronixTransaction.java:193)
at bitronix.tm.BitronixTransactionManager.commit(BitronixTransactionManager.java:120)
at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179)
... 3 more
Caused by: java.lang.RuntimeException: Unable to get session snapshot
at org.drools.persistence.SessionMarshallingHelper.getSnapshot(SessionMarshallingHelper.java:75)
at org.drools.persistence.info.SessionInfo.update(SessionInfo.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:23)
at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:80)
at org.hibernate.ejb.event.EntityCallbackHandler.preUpdate(EntityCallbackHandler.java:65)
at org.hibernate.ejb.event.EJB3FlushEntityEventListener.invokeInterceptor(EJB3FlushEntityEventListener.java:41)
at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:330)
at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:270)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:151)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:49)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:366)
at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:504)
... 7 more
Caused by: java.io.NotSerializableException: org.drools.impl.StatefulKnowledgeSessionImpl
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1506)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at java.util.ArrayList.writeObject(ArrayList.java:710)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy$SerializablePlaceholderStrategyContext.write(SerializablePlaceholderResolverStrategy.java:97)
at org.drools.marshalling.impl.PersisterHelper.writeStrategiesIndex(PersisterHelper.java:209)
at org.drools.marshalling.impl.PersisterHelper.writeToStreamWithHeader(PersisterHelper.java:189)
at org.drools.marshalling.impl.ProtobufOutputMarshaller.writeSession(ProtobufOutputMarshaller.java:101)
at org.drools.marshalling.impl.ProtobufMarshaller.marshall(ProtobufMarshaller.java:169)
at org.drools.marshalling.impl.ProtobufMarshaller.marshall(ProtobufMarshaller.java:151)
at org.drools.persistence.SessionMarshallingHelper.getSnapshot(SessionMarshallingHelper.java:72)
... 25 more
java.lang.RuntimeException: Unable to commit transaction
at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:182)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcessInstance(CommandBasedStatefulKnowledgeSession.java:237)
at com.sample.UploadDocumentWorkflowProcessMain.main(UploadDocumentWorkflowProcessMain.java:79)
Caused by: javax.persistence.PersistenceException: java.lang.RuntimeException: Unable to get session snapshot
at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:516)
at bitronix.tm.BitronixTransaction.fireBeforeCompletionEvent(BitronixTransaction.java:478)
at bitronix.tm.BitronixTransaction.commit(BitronixTransaction.java:193)
at bitronix.tm.BitronixTransactionManager.commit(BitronixTransactionManager.java:120)
at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179)
... 3 more
My Persistence.xml is as follows:
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/828386#828386]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months