[JBoss jBPM] - Re: Assigning a task to->{group, rolebased, ...}
by ricardomarques
I'm having a similar problem, but i'm using the expressions directly:
| <start-state name="enter request">
| <task name="request entry">
| <controller>
| <variable name="start date" access="read,write,required"></variable>
| <variable name="duration" access="read,write,required"></variable>
| </controller>
| <assignment expression="group(users)"></assignment>
| </task>
| <transition name="" to="evaluate request"></transition>
| </start-state>
|
Group users, has 2 users: grover and ernie
I start the instance with ernie, and the task appears on ernie tasklist and not in the group.
| cmd = new NewProcessInstanceCommand();
| cmd.setProcessId(Long.parseLong(pid));
| //cmd.setActorId(userName);
| cmd.setCreateStartTask(true);
|
| execute(cmd);
|
In this case, have tried to comment \ uncomment the actorid and the createstarttask and the behavior is the same.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059629#4059629
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059629
17Â years, 7Â months
[JBoss Seam] - redirect endless loops
by trouby
Hey,
I have some simple methods that displays some JSF forms, when I submit the form via Seam action, in the action I return another page (i.e 'return "/myItemsList.xhtml")
sometimes it works, and redirects to the next page, sometimes I see the loading bar of the browser stuck for several minutes,
In the server log file, I see an endless loop where facelets trying to re-load the tags,
no clue why, but this is started before several weeks, I think the only thing I did is some upgrades to seam/facelets but I am not exactly sure,
here's an example of the endless log lines I see in the server log file:
| [#|2007-07-02T17:05:02.609+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml|#]
| [#|2007-07-02T17:05:02.609+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml|#]
| [#|2007-07-02T17:05:02.625+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml|#]
| [#|2007-07-02T17:05:02.625+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml|#]
| [#|2007-07-02T17:05:02.625+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml|#]
| [#|2007-07-02T17:05:02.640+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/ajax4jsf-1.1.1.jar!/META-INF/a4j.taglib.xml|#]
| [#|2007-07-02T17:05:02.640+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml|#]
| [#|2007-07-02T17:05:02.640+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8181-0;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/entityconverter.jar!/META-INF/entityconverter.taglib.xml|#]
| [#|2007-07-02T17:05:03.000+0300|INFO|sun-appserver9.1|facelets.compiler|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8181-1;|Added Library from: jar:file:/C:/temp/velo/appserver/domains/domain1/applications/j2ee-apps/velo/lib/richfaces-3.0.1.jar!/META-INF/rich.taglib.xml|#]
|
any clue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059626#4059626
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059626
17Â years, 7Â months
[EJB 3.0] - @Pattern doesn't accept null.
by m.shinde
Hi,
In my application I am using @Pattern annotation. It is working fine but If I am keep that property value as null, then I am getting Hibernate Validator Failed exception.
And One more thing 'email1' property is nullable.
| @Pattern(regex = ".+@.+\\.[a-z]+")
| private String email1;
|
Exception :
| Caused by: org.hibernate.validator.InvalidStateException: validation failed for: de.bonprix.orderstarter.model.entity.Supplier
| at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
| at org.hibernate.validator.event.ValidateEventListener.onPreUpdate(ValidateEventListener.java:172)
| at org.hibernate.action.EntityUpdateAction.preUpdate(EntityUpdateAction.java:217)
| at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:65)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
| at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
| ... 84 more
Temporarily I resolved this problem by writting Own Email Validator.
So I thing this might be bug.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059625#4059625
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059625
17Â years, 7Â months
[JBoss Seam] - s:fileUpload problem
by Zerg-Spirit
Hello.
I'm having a problem using the s:fileUpload component, or more exactly the backing bean related to it, since I updated my application to the 1.3 (and later 2.0) version of Seam.
JSF:
<h:form enctype="multipart/form-data">
|
| <s:fileUpload id="data" data="#{uploadFile.data}" accept="*"
| contentType="#{uploadFile.dataContentType}" />
| <h:commandButton value="Upload" action="#{uploadFile.processData}"
| styleClass="registerButton" />
| </h:form>
Basically, the 'processData' method is loaded after a lot of time when I push the button, like several seconds (if not minutes) after.
Backing bean:
| @Name("uploadFile")
| public class UploadFile implements iUploadFile{
|
| private byte[] data;
|
| private String dataContentType;
| public void processData() {
| //my code to process the 'data' here.
| }
|
| /**
| * @return the data
| */
| @Lob
| public byte[] getData() {
| return data;
| }
|
| /**
| * @param data
| * the data to set
| */
| @Lob
| public void setData(byte[] data) {
| this.data = data;
| }
|
| /**
| * @return the dataContentType
| */
| public String getDataContentType() {
| return dataContentType;
| }
|
| /**
| * @param dataContentType
| * the dataContentType to set
| */
| public void setDataContentType(String dataContentType) {
| this.dataContentType = dataContentType;
| }
|
| }
I added the @Lob annotation reading the seam doc, but I didn't have it before.
Basically, the processData isn't called right after a click on the button, but after a huge delay, meanwhile I have a 'backing work' cursor, so the server still hasn't replied.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059622#4059622
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059622
17Â years, 7Â months