[JBoss JIRA] Created: (JBPM-742) Reimplement JbpmThreadsServlet as a ServletContextListener
by Alejandro Guizar (JIRA)
Reimplement JbpmThreadsServlet as a ServletContextListener
----------------------------------------------------------
Key: JBPM-742
URL: http://jira.jboss.com/jira/browse/JBPM-742
Project: JBoss jBPM
Issue Type: Feature Request
Components: Core Engine
Affects Versions: jBPM 3.1.1
Reporter: Alejandro Guizar
ServletContextListeners are a viable alternative to servlets for management of the jBPM scheduler/command threads. From the Servlet 2.4 spec, section 10.2:
>>>
Servlet event listeners support event notifications for state changes in the ServletContext, HttpSession and ServletRequest objects.
Servlet context listeners are used to **manage resources** or state held at a JVM level for the application.
<<<
Their intent definitely seems to match our purposes.
Further below:
>>>
There may be multiple listener classes listening to each event type.
<<<
We could have separate listeners for the scheduler and command executor so that applications may remove either of them in case the related service is not used.
Section 10.2.2 provides an example. When the application starts up, the listener creates a connection to the database and stores it in the servlet context. Servlets access the connection from the context as needed. When the application shuts down, the listener closes the connection.
Our listener could start the thread and store it in the servlet context, then stop it using the mechanisms provided by JBPM-741.
--
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
19 years, 2 months
[JBoss JIRA] Updated: (JBPM-511) use service directly
by Tom Baeyens (JIRA)
[ http://jira.jboss.com/jira/browse/JBPM-511?page=all ]
Tom Baeyens updated JBPM-511:
-----------------------------
Fix Version/s: jBPM 3.3
(was: jBPM jPDL 3.2)
postponed
> use service directly
> --------------------
>
> Key: JBPM-511
> URL: http://jira.jboss.com/jira/browse/JBPM-511
> Project: JBoss jBPM
> Issue Type: Task
> Components: Core Engine
> Reporter: Tom Baeyens
> Assigned To: Tom Baeyens
> Priority: Trivial
> Fix For: jBPM 3.3
>
>
> services are now used indirectly. meaning that the non-persisted data members in the instances are used to store service operations. during the jbpmContext.save, all this data is interpreted and the services are invoked.
> most of those service invocations should be done directly. this implies that a large part of the POJO test suite will have to be revised to accomodate this. probably a common base class will be sufficient.
> regards, tom.
--
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
19 years, 2 months
[JBoss JIRA] Created: (JBPM-820) free choice of initial node type
by Tom Baeyens (JIRA)
free choice of initial node type
--------------------------------
Key: JBPM-820
URL: http://jira.jboss.com/jira/browse/JBPM-820
Project: JBoss jBPM
Issue Type: Feature Request
Components: Core Engine
Reporter: Tom Baeyens
Assigned To: Tom Baeyens
Fix For: jBPM 3.2
currently, you are forced to have a start-state to mark the initial node in your process-definition.
i think it is a good idea to expand this so that any type of node could be the first node in the process. we already did this with SEAM.
IMO, the most elegant way to achieve this is by adding an optional attribute 'initial' to the process-definition. the value must be a node name. when the initial node is specified as an attribute, the process should not have a start-state.
the result is that with the initial attribute on the process-definition, any node type can be used as the start state.
we would have to update the core engine new ProcessInstance(processDefinition) method. after creating the process instance and positioning the token in the initial node, the initial node has to be executed. now that is not the case. the initial node is not executed.
because the start-state now has an empty implementation, this will be backwards compatible.
--
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
19 years, 2 months