[JBoss jBPM] - Swimlane in start
by dlipski
Hi
I want to remeber process initiator and then assign some task only to such person. So I've created some smple process definition:
| <process-definition name="orderManagement">
| <swimlane name="creator" />
|
| <start-state name="start">
| <task swimlane="creator"/>
| <transition name="init" to="somewhere"></transition>
| </start-state>
| </process-definition>
|
And after invoking this code:
| InputStream is = new FileInputStream("processes/orderManagement/processdefinition.xml");
| ProcessDefinition def = ProcessDefinition.parseXmlInputStream(is);
| ProcessInstance pi = def.createProcessInstance();
| Token t = pi.getRootToken();
| t.signal();
|
I get such log:
| [org.jbpm.configuration.ObjectFactoryImpl] - adding object info 'jbpm.mail.address.resolver'
| [org.jbpm.jpdl.xml.JpdlXmlReader] - process xml warning: swimlane 'creator' does not have an assignment
| [org.jbpm.graph.def.GraphElement] - event 'process-start' on 'ProcessDefinition(orderManagement)' for 'Token(/)'
| [org.jbpm.graph.def.GraphElement] - event 'before-signal' on 'StartState(start)' for 'Token(/)'
| [org.jbpm.graph.def.GraphElement] - event 'node-leave' on 'StartState(start)' for 'Token(/)'
| [org.jbpm.graph.def.GraphElement] - event 'transition' on 'Transition(init)' for 'Token(/)'
|
What is wrong ? It is very similar to example from documentaion(11.7).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961890#3961890
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961890
19 years, 5 months
[JBoss Seam] - Problem with decrementing dates
by bfo81
I have an entity Person with a Birthday (property annotated with @Temporal(TemporalType.DATE)).
e.g. John Sixpack, 1976-07-04
There's a JSF file for editing it, and it includes:
<h:inputText value="#{person.birthday}">
| <f:convertDateTime type="date" />
| </h:inputText>
Problem: The input text field shows the wrong date: 1976-07-03 instead of 1976-07-04.
For debugging I added the following after the h:inputText
<h:outputText value="#{person.birthday}" />
| <h:outputText value="#{person.birthday}">
| <f:convertDateTime type="both" />
| </h:outputText>
and the page now displays:
anonymous wrote : [__1976-07-03___] (input field with converter is wrong)
| 1976-07-04 (normal output is correct)
| 1976-07-03 23:00:00 (output field with converter is wrong)
The database clearly says 1976-07-04 (it's a date field without time). But as you can see, the converter subtracts one hour, what results in a birthday one day earlier each time the user saves the edited entry.
Well, it looks like a timezone (GMT+1) or summertime/daylight saving time problem, but I don't know what to do or where to start. Did anyone have similar experiences? Or a hint for solving this problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961888#3961888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961888
19 years, 5 months
[EJB 3.0] - Configuring interceptors for stateless session beans
by kirdat_kishore
As I understand the ejb3-interceptors-aop.xml defines the set of interceptors for ejb3. I would like to understand what functionality does each one of them provide. Also, is it possible to disable any interceptors by simply removing them from the element list under element?
For ex. I have following fragment in my ejb3-interceptors-aop.xml.
<aop>
| .
| .
| <domain name="Stateless Bean">
| <bind pointcut="execution(public * *->*(..))">
| <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
| <interceptor-ref name="org.jboss.ejb3.ENCPropagationInterceptor"/>
| <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
| </bind>
| ...
| </domain>
| ....
| </aop>
|
Can I remove AsynchronousInterceptor simply by commenting out that entry?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961885#3961885
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961885
19 years, 5 months
[EJB 3.0] - Null Pointer when attempting update on newly created detache
by jedavie
Hello,
I am having problems with the EJB3.0 concept of being able to update and merge a detached instance of an entity bean. I successfully call the create() mathod, which is really a wrapper for em.persist (entity). However, immediately after, I am returned a null pointer when I attempt to find the newly created entity with a dao.find(pk), which is really a wrapper for em.find(entity class,pk). What would cause this? I can see the entity entry in the database using the DatabseExplorer, and the EJB docs state that I should be able to call up an entity out of the database for a detached update and merge?
I am using jboss-EJB-3.0_RC5-PFD, JBoss 4.0.4.GA, and an Oracle 10G database.
Thanks,
Jim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961884#3961884
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961884
19 years, 5 months