[JBoss JIRA] Resolved: (JBPM-750) NPE on TaskInstance.java on end() when TaskInstance created manually and no Task is assigned
by Thomas Diesler (JIRA)
[ http://jira.jboss.com/jira/browse/JBPM-750?page=all ]
Thomas Diesler resolved JBPM-750.
---------------------------------
Resolution: Out of Date
> NPE on TaskInstance.java on end() when TaskInstance created manually and no Task is assigned
> --------------------------------------------------------------------------------------------
>
> Key: JBPM-750
> URL: http://jira.jboss.com/jira/browse/JBPM-750
> Project: JBoss jBPM
> Issue Type: Bug
> Components: Core Engine
> Affects Versions: jBPM 3.1.2
> Environment: All
> Reporter: Uhyon Chung
> Assigned To: Tom Baeyens
>
> When you create a new TaskInstance manually (from a ActionHandler) without a Task assigned, an NPE occurs in a log statement in the end(Transition) method.
> If you take a look at the end method, it seems to allow null tasks, because it checks whether the task is null before execution methods on the task field. However, in the log.debug statement, it does not do this null check, which causes an NPE. I'm not quite sure if having a TaskInstance without a Task is really a good practice, but otherwise I would need to create a Task object and add it to the ProcessDefinition, which is definitely not something I want to be doing since I just want to add a task instance to the user's task list dynamically.
> I've created a small fix, and the patch is as follows.I made the patch based on the 3.1.2 on CVS using Eclipse patch.
> ### Eclipse Workspace Patch 1.0
> #P jbpm3
> Index: jpdl/jar/src/main/java/org/jbpm/taskmgmt/exe/TaskInstance.java
> ===================================================================
> RCS file: /cvsroot/jbpm/jbpm.3/jpdl/jar/src/main/java/org/jbpm/taskmgmt/exe/TaskInstance.java,v
> retrieving revision 1.6
> diff -u -r1.6 TaskInstance.java
> --- jpdl/jar/src/main/java/org/jbpm/taskmgmt/exe/TaskInstance.java 8 Sep 2006 11:23:07 -0000 1.6
> +++ jpdl/jar/src/main/java/org/jbpm/taskmgmt/exe/TaskInstance.java 15 Sep 2006 06:27:07 -0000
> @@
> if (transition==null) {
> - log.debug("completion of task '"+task.getName()+"' results in taking the default transition");
> + log.debug("completion of task '"+(task==null?getName():task.getName())+"' results in taking the default transition");
> token.signal();
> } else {
> - log.debug("completion of task '"+task.getName()+"' results in taking transition '"+transition+"'");
> + log.debug("completion of task '"+(task==null?getName():task.getName())+"' results in taking transition '"+transition+"'");
> token.signal(transition);
> }
> }
> -464,10 +464,10 @@
> ) {
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Resolved: (JBPM-687) create setup for easy analytics development
by Thomas Diesler (JIRA)
[ http://jira.jboss.com/jira/browse/JBPM-687?page=all ]
Thomas Diesler resolved JBPM-687.
---------------------------------
Resolution: Out of Date
> create setup for easy analytics development
> -------------------------------------------
>
> Key: JBPM-687
> URL: http://jira.jboss.com/jira/browse/JBPM-687
> Project: JBoss jBPM
> Issue Type: Task
> Components: Core Engine
> Reporter: Tom Baeyens
> Assigned To: Tom Baeyens
> Priority: Critical
>
> set up an environment where it is easy to run a hsqldb as a separate server process.
> * include scripts to run hsqldb as a separate server process
> * include scripts to create the JBPM db schema
> * include data and scripts to upload the example identity data
> * include processes and scripts to upload a few example processes
> * include a few unit test cases that generate some logging data so that it is easy to start developing analytics queries
>
> then include instructions on how the hibernate tools can be used to connect to this db.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Resolved: (JBPM-715) Implement runtime automagically generated forms
by Thomas Diesler (JIRA)
[ http://jira.jboss.com/jira/browse/JBPM-715?page=all ]
Thomas Diesler resolved JBPM-715.
---------------------------------
Resolution: Out of Date
> Implement runtime automagically generated forms
> -----------------------------------------------
>
> Key: JBPM-715
> URL: http://jira.jboss.com/jira/browse/JBPM-715
> Project: JBoss jBPM
> Issue Type: Feature Request
> Components: Web Interface
> Environment: n/a
> Reporter: Ronald van Kuijk
> Assigned To: Ronald van Kuijk
> Priority: Minor
>
> As long as it is not possible to generate an .xhtml file from the gpd for a task, it should be possible to use a designed process without the need to create custom forms.
> Initially this would be identical to the 3.1 automagical forms (not taking into account the variable type) but it should some day.
> Taking the variable type into account would be possible if the variable already exists in the process instances, but if it is initially filled via a type agnostic ui, it will always be string. If it is set via the api, we could take it into account.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months