[Design of JBoss jBPM] - variable inside task controller
by clandestino_bgd
Hello,
I am using JBPM with Spring and Struts, so I do not use JSF for task form generation which is a mechanism supported by GPD. I generate task form on my task form jsp page by using some gymnastics with predefined prefixes in variable mapped-name and it works well more than 1 year (touch the wood).
jbpm-3.2 XSD for variable looks like this:
| <xs:element name="variable">
| <xs:complexType>
| <xs:sequence>
| <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
| </xs:sequence>
| <xs:attribute name="name" type="xs:string" use="required"/>
| <xs:attribute name="access" type="xs:string" default="read,write"/>
| <xs:attribute name="mapped-name" type="xs:string" />
| </xs:complexType>
| </xs:element>
|
What by my opinion is missing here is the way to specify default value.
How I do it in the moment, is to specify variable in process-start event script, and use the same variable in controller.
So, I would be happy if variable definition could have also these attributes:
| <xs:attribute name="default-value" type="xs:string" />
|
and maybe:
| <xs:attribute name="description" type="xs:string" />
|
which should store some custom info usable by somebody like me, who has different way to generate task forms :)
But wouldn't it be more comfortable for process designer to have ability to specify variable default value inside task directly?
I would appreciate your views.
Thanks a lot,
Milan
P.S
I read all Tom's articles about different roles for BA and developer, but my research is not targeted to BAs but for scientists, who usually do not have developer in the same room.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171798#4171798
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171798
17 years, 7 months
[QA of JBoss Portal] - Re: jboss-portal-2.6.5.SP1 Creating already existing role bu
by vrockai
same issue on jboss-portal-2.6.6.GA
what may be interesting are few lines form run.sh output
| 16:29:08,742 ERROR [AssertionFailure] an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
| org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
|
and few lines form the web page after submit button...
| HTTP Status 500 -
|
| type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| javax.servlet.ServletException: org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
| org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:276)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
| org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:55)
| org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:164)
| org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:120)
| org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
| org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171788#4171788
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171788
17 years, 7 months
[QA of JBoss Portal] - jboss-portal-2.6.5.SP1 Creating already existing role bug?
by vrockai
When i try to create already existing role on jboss portal (jboss-portal-2.6.5.SP1-bundled.zip), i get an exception.
http://localhost:8080/portal
login as admin
admin -> members -> role managment
Create new role
Role: User | Display name: everything
submit
then i can see the exception page. first lines from the exception page:
| type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| javax.servlet.ServletException: org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
| org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:276)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
| org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:55)
| org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:164)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171780#4171780
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171780
17 years, 7 months