[JBoss JIRA] Created: (JBPM-2471) Params submitted via a taskform tied to the start activity cant be referenced in expressions till a task halt has been added to the workflow
by Lalit Mathwani (JIRA)
Params submitted via a taskform tied to the start activity cant be referenced in expressions till a task halt has been added to the workflow
--------------------------------------------------------------------------------------------------------------------------------------------
Key: JBPM-2471
URL: https://jira.jboss.org/jira/browse/JBPM-2471
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jBPM 4.0
Environment: Win XP, Jboss 5.0 GA, JBPM4, HSQL (bundled)
Reporter: Lalit Mathwani
See :http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159414 for a description of the issue.
Here's a process description snippet:
<?xml version="1.0" encoding="UTF-8"?>
<process name="GTRIHelpRequest" xmlns="http://jbpm.org/4.0/jpdl">
<on event="start">
<event-listener class="gtri.jbpm.pilot.LogListener">
<field name="msg"><string value="starting the process GTRIHelpRequest"/></field>
</event-listener>
</on>
<start form="gtri/jbpm/pilot/demo/request_help.ftl" g="0,0,80,40" name="start">
<on event="start">
<event-listener class="gtri.jbpm.pilot.LogListener">
<field name="msg"><string value="In the start activity - start event - of GTRIHelpRequest process"/></field>
</event-listener>
</on>
<transition to="debug_variables"/>
</start>
<script expr="Just dumping process variables" g="66,10,80,40" name="debug_variables" var="processVarABC">
<on event="start">
<event-listener class="gtri.jbpm.pilot.LogListener">
<field name="msg"><string value="In the debug variables activity - start event - of GTRIHelpRequest process"/></field>
</event-listener>
</on>
<transition to="is_lab_approval_needed"/>
</script>
<decision g="354,85,80,40" name="is_lab_approval_needed">
<on event="start">
<event-listener class="gtri.jbpm.pilot.LogListener">
<field name="msg"><string value="In the is_lab_approval activity - start event - of GTRIHelpRequest process"/></field>
</event-listener>
</on>
<transition to="in_lab_approval_email">
<condition expr="#{(hr_subcategory=='newhire') || (hr_subcategory=='newconst') || (hr_subcategory=='badge') }"/>
</transition>
<transition to="in_request_handling_email"/>
</decision>
We have a form tied to the start activity. In this form(request_help.ftl) , we submit a param hr_subcategory:
<tr>
<td>Sub-categories:</td>
<td>
<select name="hr_subcategory">
<option value="newhire">New Hire</option>
<option value="others">Others</option>
</select>
</td>
<tr>
We transition to the is_lab_approval_needed decision after a debug activity. In the decision, is_lab_approval_needed, we try to reference the hr_subcategory value as follows in one of the conditions:
<condition expr="#{(hr_subcategory=='newhire') || (hr_subcategory=='newconst') || (hr_subcategory=='badge') }"/>
This reference causes a Null pointer to be thrown back on the BPM workflow console.
Now introduce a halt in the workflow before the decision eg :
<script expr="Just dumping process variables" g="66,10,80,40" name="debug_variables" var="processVarABC">
<on event="start">
<event-listener class="gtri.jbpm.pilot.LogListener">
<field name="msg"><string value="In the debug variables activity - start event - of GTRIHelpRequest process"/></field>
</event-listener>
</on>
<transition to="manager_approval"/>
</script>
<task candidate-users="peter,mary" form="gtri/jbpm/pilot/demo/manager_approval.ftl" g="163,10,131,40" name="manager_approval">
<on event="start">
<event-listener class="gtri.jbpm.pilot.LogListener">
<field name="msg"><string value="In the manager_approval_test activity - start event - of GTRIHelpRequest process"/></field>
</event-listener>
</on>
<notification/>
<transition g="-38,-18" name="Allowed" to="is_lab_approval_needed"/>
<transition g="-38,-18" name="Sorry" to="request_rejected"/>
</task>
<decision g="354,85,80,40" name="is_lab_approval_needed">
<on event="start">
<event-listener class="gtri.jbpm.pilot.LogListener">
<field name="msg"><string value="In the is_lab_approval activity - start event - of GTRIHelpRequest process"/></field>
</event-listener>
</on>
<transition to="in_lab_approval_email">
<condition expr="#{(hr_subcategory=='newhire') || (hr_subcategory=='newconst') || (hr_subcategory=='badge') }"/>
</transition>
<transition to="in_request_handling_email"/>
</decision>
The NPE is resolved - the hr_subcategory is now visible in the decision after the manager approval.
The params submitted via the taskform linked with the start activity should be available in any subsequent activity for reference in a expression ..without having to impose a halt in the workflow like we had to.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBPM-2483) Spring+JPA(hibernate)+JBPM4 can not integrated
by fengwen li (JIRA)
Spring+JPA(hibernate)+JBPM4 can not integrated
----------------------------------------------
Key: JBPM-2483
URL: https://jira.jboss.org/jira/browse/JBPM-2483
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jBPM 4.0
Environment: spring 2.5, jpa 1.0 , jbpm4.0
Reporter: fengwen li
Fix For: jBPM 4.1
I'm using JPA (hibernate implementation) so I would like to know how can I integrate them.
spring applicationContext.xml
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
p:dataSource-ref="dataSource">
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="true" />
<property name="generateDdl" value="true" />
<property name="databasePlatform" value="${hibernate.dialect}" />
</bean>
</property>
</bean>
jbpm.cfg.xml
<process-engine-context>
<command-service>
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</command-service>
</process-engine-context>
<transaction-context>
<transaction />
<hibernate-session current="true" />
</transaction-context>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBPM-2512) Report template 'overall_activity.rptdesign' is broken
by Heiko Braun (JIRA)
Report template 'overall_activity.rptdesign' is broken
------------------------------------------------------
Key: JBPM-2512
URL: https://jira.jboss.org/jira/browse/JBPM-2512
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Console
Reporter: Heiko Braun
Assignee: Joram Barrez
Fix For: jBPM 4.1
When rendering the 'overall_activity.rptdesign' template on MySQl I get this:
The following items have errors:
Data (id = 311):
+ Column binding "PROCESS_DEFINITION" has referred to a data set column "PROCESS_DEFINITION" which does not exist.
Data (id = 310):
+ Column binding "PROCESS_DEFINITION" has referred to a data set column "PROCESS_DEFINITION" which does not exist.
Table process_counts_table:
+ Column binding "PROCESS_DEFINITION" has referred to a data set column "PROCESS_DEFINITION" which does not exist.
Chart NewChart:
+ Column binding "PROCESS_DEFINITION" has referred to a data set column "PROCESS_DEFINITION" which does not exist.
Chart NewChart1:
+ An exception occurred during processing. Please see the following message for details:
Cannot get the result set metadata.
SQL statement does not return a ResultSet object.
SQL error #1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '// The STDDEV function isn't a standard function
// (eg doesn't work on HSQLDB),' at line 1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months