[jBPM Users] - [jBPM4.1] Update hibernate-type process variables via form t
by markroy
In the Freemarker template attached to my task node, if I have a form field that references a process variable of a simple type, String e.g.,
[input type="text" name="stringProcVar" value="${stringProcVar}"]
the process variable stringProcVar is updated on form submit. However, if I have a form field that references 'objvar', a process variable that is of type 'hibernate entity with a string id':
[input type="text" name="objvar.property" value="${objvar.property}"]
the properties of 'objvar' are displayed correctly in the form. However, updates to the value (input field on form post) do not update objvar's properties. Instead, a new process variable is created:
(server.log)
DEBUG [org.jbpm.pvm.internal.model.ScopeInstanceImpl] (http-127.0.0.1-8080-5) create variable 'objvar.property' in 'execution[ESP-9]' with value 'abc123'
Is this something that should work? If so, what should the field 'name' property be set to?
Thanks,
Mark
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261335#4261335
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261335
16 years, 5 months
[jBPM Users] - how to programatically list actitities from one activity
by kadrim
=== Environment ==============================
- jBPM Version : jbpm 4.1 on WinXP
- Database : Mysql 5.1
- JDK : 1.5.0.11
- Container : Tomcat 6.0.20
- Configuration : importing files from the jbpm.jar
- Libraries : I had to replace el-jar from tomcat with juel* from jbpm
=== Process ==================================
< process name="StateSequence" xmlns="http://jbpm.org/4.0/jpdl" >
< start g="16,18,48,48" >
< transition to="a" / >
< /start >
< state name="a" g="96,16,75,52" >
< transition to="b" / >
< transition to="c" / >
< /state >
< state name="b" g="203,16,73,52" >
< transition to="c" / >
< /state >
< end name="c" g="308,16,76,52" / >
< /process >
=== Problem description =========================
How do I do to know programatically that state "a" has to two transitions: "b" and "c"?
because :
Execution.getExecutions(): Only lists active executions
Execution.findActiveActivityNames(): Only lists active activities
I need something like:
Execution.listActivities(): List activities of current activity so I'd get transtion "b" and "c".
Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261316#4261316
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261316
16 years, 5 months
[jBPM Users] - Store long strings as variables
by Krohm
Hello,
I am currently trying to store strings of various lengths into JBPM4 context.
This works fine until the string reaches the maximum size defined in the database, then crashes.
The behavior I am trying to obtain is the following :
* String is stored as a String if shorted than the limit.
* String is stored as a Blob if it longer than the limit.
I have tried to remove the following line in the jbpm.variables.types.xml file :
<type name="string" class="java.lang.String" variable-class="org.jbpm.pvm.internal.type.variable.StringVariable" />
This works just fine, as all strings are saved a Blobs as Strings are Serializable . (which is not what I am aiming at).
Is my understanding correct when I assume it is not possible to have my strings handled as Strings or as Blobs depending on their size just with configuration ?
I was thinking of implementing another Variable class in order to replace org.jbpm.pvm.internal.type.variable.StringVariable and handle this. Does it make any sense or is there a much simpler way to do this ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261277#4261277
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261277
16 years, 5 months
[jBPM Users] - Re: [jBPM4] Programatic deployment - DEPLOYPROP table is emp
by DrBrain
And here's the log output in case someone has a hint:
2009-10-20 12:18:52,379 DEBUG org.hibernate.jdbc.JDBCContext - successfully registered Synchronization
| 2009-10-20 12:18:52,379 DEBUG org.hibernate.impl.SessionImpl - opened session at timestamp: 5144700241424384
| 2009-10-20 12:18:52,379 DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2009-10-20 12:18:52,379 DEBUG org.hibernate.jdbc.ConnectionManager - opening JDBC connection
| 2009-10-20 12:18:52,380 DEBUG org.hibernate.SQL - select hibernate_sequence.nextval from dual
| 2009-10-20 12:18:52,381 DEBUG org.hibernate.id.SequenceGenerator - Sequence identifier generated: 103
| 2009-10-20 12:18:52,381 DEBUG org.hibernate.jdbc.AbstractBatcher - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2009-10-20 12:18:52,381 DEBUG org.hibernate.jdbc.ConnectionManager - aggressively releasing JDBC connection
| 2009-10-20 12:18:52,381 DEBUG org.hibernate.jdbc.ConnectionManager - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
| 2009-10-20 12:18:52,381 DEBUG org.hibernate.event.def.AbstractSaveEventListener - generated identifier: 103, using strategy: org.hibernate.id.SequenceGenerator
| 2009-10-20 12:18:52,382 DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2009-10-20 12:18:52,382 DEBUG org.hibernate.jdbc.ConnectionManager - opening JDBC connection
| 2009-10-20 12:18:52,382 DEBUG org.hibernate.SQL - select hibernate_sequence.nextval from dual
| 2009-10-20 12:18:52,383 DEBUG org.hibernate.id.SequenceGenerator - Sequence identifier generated: 104
| 2009-10-20 12:18:52,383 DEBUG org.hibernate.jdbc.AbstractBatcher - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2009-10-20 12:18:52,393 DEBUG org.hibernate.jdbc.ConnectionManager - aggressively releasing JDBC connection
| 2009-10-20 12:18:52,393 DEBUG org.hibernate.jdbc.ConnectionManager - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
| 2009-10-20 12:18:52,393 DEBUG org.hibernate.event.def.AbstractSaveEventListener - generated identifier: 104, using strategy: org.hibernate.id.SequenceGenerator
| 2009-10-20 12:18:52,394 DEBUG .hibernate.event.def.AbstractFlushingEventListener - processing flush-time cascades
| 2009-10-20 12:18:52,396 DEBUG .hibernate.event.def.AbstractFlushingEventListener - dirty checking collections
| 2009-10-20 12:18:52,396 DEBUG org.hibernate.engine.Collections - Collection found: [org.jbpm.pvm.internal.repository.DeploymentImpl.resources#103], was: [<unreferenced>] (initialized)
| 2009-10-20 12:18:52,396 DEBUG .hibernate.event.def.AbstractFlushingEventListener - Flushed: 2 insertions, 0 updates, 0 deletions to 2 objects
| 2009-10-20 12:18:52,396 DEBUG .hibernate.event.def.AbstractFlushingEventListener - Flushed: 1 (re)creations, 0 updates, 0 removals to 1 collections
| 2009-10-20 12:18:52,398 DEBUG org.hibernate.pretty.Printer - listing entities:
| 2009-10-20 12:18:52,398 DEBUG org.hibernate.pretty.Printer - org.jbpm.pvm.internal.lob.Lob{blob=org.hibernate.lob.SerializableBlob@139160e, dbid=104, dbversion=0}
| 2009-10-20 12:18:52,398 DEBUG org.hibernate.pretty.Printer - org.jbpm.pvm.internal.repository.DeploymentImpl{timestamp=0, resources=[org.jbpm.pvm.internal.lob.Lob#104], name=null, objectProperties=nul
| l, state=active, dbid=103}
| 2009-10-20 12:18:52,401 DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2009-10-20 12:18:52,401 DEBUG org.hibernate.jdbc.ConnectionManager - opening JDBC connection
| 2009-10-20 12:18:52,401 DEBUG org.hibernate.SQL - insert into JBPM4_DEPLOYMENT (NAME_, TIMESTAMP_, STATE_, DBID_) values (?, ?, ?, ?)
| 2009-10-20 12:18:52,401 DEBUG org.hibernate.jdbc.AbstractBatcher - Executing batch size: 1
| 2009-10-20 12:18:52,403 DEBUG org.hibernate.jdbc.Expectations - success of batch update unknown: 0
| 2009-10-20 12:18:52,403 DEBUG org.hibernate.jdbc.AbstractBatcher - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2009-10-20 12:18:52,403 DEBUG org.hibernate.jdbc.ConnectionManager - skipping aggressive-release due to flush cycle
| 2009-10-20 12:18:52,403 DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2009-10-20 12:18:52,403 DEBUG org.hibernate.SQL - insert into JBPM4_LOB (DBVERSION_, BLOB_VALUE_, DBID_) values (?, ?, ?)
| 2009-10-20 12:18:52,404 DEBUG org.hibernate.jdbc.AbstractBatcher - Executing batch size: 1
| 2009-10-20 12:18:52,407 DEBUG org.hibernate.jdbc.Expectations - success of batch update unknown: 0
| 2009-10-20 12:18:52,407 DEBUG org.hibernate.jdbc.AbstractBatcher - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2009-10-20 12:18:52,407 DEBUG org.hibernate.jdbc.ConnectionManager - skipping aggressive-release due to flush cycle
| 2009-10-20 12:18:52,407 DEBUG e.persister.collection.AbstractCollectionPersister - Inserting collection: [org.jbpm.pvm.internal.repository.DeploymentImpl.resources#103]
| 2009-10-20 12:18:52,407 DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2009-10-20 12:18:52,407 DEBUG org.hibernate.SQL - update JBPM4_LOB set DEPLOYMENT_=?, NAME_=? where DBID_=?
| 2009-10-20 12:18:52,409 DEBUG e.persister.collection.AbstractCollectionPersister - done inserting collection: 1 rows inserted
| 2009-10-20 12:18:52,409 DEBUG org.hibernate.jdbc.AbstractBatcher - Executing batch size: 1
| 2009-10-20 12:18:52,410 DEBUG org.hibernate.jdbc.Expectations - success of batch update unknown: 0
| 2009-10-20 12:18:52,410 DEBUG org.hibernate.jdbc.AbstractBatcher - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2009-10-20 12:18:52,411 DEBUG org.hibernate.jdbc.ConnectionManager - skipping aggressive-release due to flush cycle
| 2009-10-20 12:18:52,412 DEBUG org.hibernate.jdbc.ConnectionManager - aggressively releasing JDBC connection
| 2009-10-20 12:18:52,412 DEBUG org.hibernate.jdbc.ConnectionManager - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261205#4261205
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261205
16 years, 5 months