[jboss-user] [JBoss jBPM] - Re: task due date
Where does this due date appears in the database. I saw duedate in jbpm_task, but it's not the same one. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247166#4247166 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247166 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
no same config AND same project. I tried to enable the timers and succeeded, then I removed it because I didn't need it, and here it is! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247062#4247062 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247062 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
no I have still the same libs. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247035#4247035 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247035 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
that's strange I remember some months ago I got it working... With the same config... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247032#4247032 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247032 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
Without this, I get the exception : JbpmServiceException : service scheduler unavailable View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247023#4247023 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247023 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
My emails are working perfectly. Here is the interesting part of my config : jbpm.cfg.xml : | | | | | | | | | | | web.xml : | | | | JobExecutorServlet | org.jbpm.job.executor.JobExecutorServlet | 1 | | | JobExecutorServlet | /jobs | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247017#4247017 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247017 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
Nothing happens. Exactly as is there was no scheduler running... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247013#4247013 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247013 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
JBPM 3.3.1 exactly View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247006#4247006 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247006 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
The XML changed, but I d'ont have anything with reminder, but : | | Le valideur doit valider ouy refuser manuellement la demande émise | | | | Le valideur doit valider ou refuser la demande de congé effectuée par le collaborateur. Si, lorsque la demande débute, le valideur n'a pas pris de décision, elle est automatiquement validée. | | | | | | | System.out.println("trop tard : validee !"); | | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246981#4246981 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246981 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
Hum, just to try, I added a timer with a fixed due date value (1 minute). It does nothing, and nothing in the logs too... I wonder if my schedule engine is running, allthough I configured my web.xml and jbpm.cfg.xml. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246971#4246971 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246971 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
I noticed the class CreateTimerAction, which has a setDueDate. Do I have to use this? Here is what I guess : create a CreateTimerAction Timer timer = CreateTimerAction.createTimer What do I do of this Timer?! BTW, is the Javadoc going to be completed? It's sometimes hard to browse into it, lot's of comments are missing. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246703#4246703 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: task due date
Ok, but I saw somewhere a while ago that I could not change the timer value dynamically. Is it true? If not, how can I retrieve and change the timer? I don't see anything in the TaskInstance class to do so. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246468#4246468 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246468 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - task due date
Hi, I'm trying to set a due date to a task, so that when the due date happends, the task ends and one transition is taken. Here is what I tried : Collection tasks = processInstance.getTaskMgmtInstance().getTaskInstances(); | for (TaskInstance taskInstance : tasks) { | if(taskInstance.getName().equals("valider_demande")) | { | taskInstance.setDueDate(demande.getAbsenceDateDebut()); | jbpmContext.save(taskInstance); | } | } Nothing happens when the due date expires, so I wonder how to make it work... Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246444#4246444 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Trying to catch SMTP exception, but leads to SQL excepti
(the exception is precisely 5511 chars long. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239327#4239327 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239327 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Trying to catch SMTP exception, but leads to SQL excepti
The problem is the size of the row. I've made it to 4 (!) and it works now. I think the MySQL schema could be changed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239326#4239326 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239326 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Trying to catch SMTP exception, but leads to SQL excepti
I knew it was 2592 chars when I consult the database, but obviously it was an old entry. So here it comes again, I was not able to resolve this bug. Do I have to enter it in the jira? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239324#4239324 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239324 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Ending tasks manually
Hum sorry but I don't have lot of time to build an sample of the error. I found a (dirty) way to do the job : I noticed that although taskInstance.end(transition) doesn't work, token.signal(transition) does. So here is what I've done : Transition tr=taskInstance.getTask().getTaskNode().getLeavingTransition("refusee"); | | Token currentToken = processInstance.getRootToken(); | currentToken.signal(tr); | | @SuppressWarnings(value={"unchecked"}) //taskMgmtSession returns a raw List... We ignore the warning thrown by Java | List userTaskList2 = taskMgmtSession.findTaskInstances(demande.getDemandeur().getUsername()); | | for(int j = 0 ; j < userTaskList2.size() ; j++) | { | TaskInstance taskInstance2 = userTaskList2.get(j); | if(taskInstance2.getProcessInstance().getId() == processInstanceId) | { | if(taskInstance2.getName().equals("valider_demande")); | { | taskInstance2.end(); | break; | } | } | } It is a temporary solution, and it's not optimized but it works. I keep it like that until I don't find a clean way... (I still suspect that taskInstance.end(transition) doesn't work properly). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234630#4234630 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Ending tasks manually
One strange thing I noticed: when I try to know the active node, I'm doing: Token currentToken = processInstance.getRootToken(); Node currentNode = currentToken.getNode(); The strange thing is that the token is not null, but every value of its properties is null: currentTokenToken_$$_javassist_187 (id=160) | childrennull | commentsnull | end null | handler JavassistLazyInitializer (id=183) | id 0 | isAbleToReactivateParenttrue | isSuspended false | isTerminationImplicit false | locknull | namenull | nextLogIndex0 | nodenull | nodeEnter null | parent null | processInstance null | start null | subProcessInstance null | version 0 | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233651#4233651 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Ending tasks manually
All I see in the debug is that jBPM is taking the wrong transition. No error. Here is the interesting part of the log : GraphElement:180 - event 'node-leave" on 'TaskNode(valider_demande)' for 'Token(/)' | GraphElement:180 - event 'transition' on 'Transition(validee) for 'Token(/)' | GraphElement:180 - event 'node-enter' on 'MailNode(notifier_acceptation) for 'Token(/)' | And here is my process definition: | | | | | | | | | | #{mailSubject} | #{mailText} | | | | | | | | | Le valideur doit valider ouy refuser manuellement la demande émise | | | | Le valideur doit valider ou refuser la demande de congé effectuée par le collaborateur | | | | | | | | | | #{mailSubject} | #{mailText} | | | | | | | | | | | | #{mailSubject} | | | #{mailText} | | | | | | | | La demande est considérée comme traitée. Cette finalisation est une tâche manuelle | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233649#4233649 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Ending tasks manually
It doesn't make any difference (I already tried before). When debugging, I get the followinf messages (allthough not debug but WARN messages...°: WARN ProxyWarnLog:638 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == | WARN ProxyWarnLog:638 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == I have no idea what it means... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233630#4233630 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Ending tasks manually
I tried your code though, but not working. Here is my code to check if I'm on the right node : Token currentToken = processInstance.getRootToken(); | Node currentNode = currentToken.getNode(); | | | if(currentNode.getName().equals("notifier_demande_refusee")) | { | ... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233581#4233581 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233581 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Ending tasks manually
tr is not null, and contains the right transition. That's whay that's strange, like the end(tr) was not working... | tr Transition (id=140) | condition null | description null | events PersistentMap (id=147) | exceptionHandlers PersistentList (id=150) | fromTaskNode_$$_javassist_219 (id=155) | id 4 | isConditionEnforced true | name"refusee" (id=161) | processDefinition ProcessDefinition_$$_javassist_185 (id=162) | to Node_$$_javassist_254 (id=164) | And like kukeltje said, what is the aim of: taskInstance =jbpmContext.getTaskInstance(taskInstance.getID()); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233578#4233578 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Ending tasks manually
Hum I'm encountering the same problem, but I can't make it work. Like you, I want to choose one transition among 2 existing. WHen I try this: Transition tr=taskInstance.getTask().getTaskNode().getLeavingTransition("refusee"); I get the good transition. But when I do task.end(tr), it always takes the first transition (without any error). Here is the complete code: | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); | try { | | processInstance = jbpmContext.loadProcessInstance(processInstanceId); | | TaskMgmtSession taskMgmtSession = jbpmContext.getTaskMgmtSession(); | @SuppressWarnings(value={"unchecked"}) //taskMgmtSession returns a raw List... We ignore the warning thrown by Java | List userTaskList = taskMgmtSession.findTaskInstances(demande.getValideur().getUsername()); | | for(int i = 0 ; i < userTaskList.size() ; i++) | { | TaskInstance taskInstance = userTaskList.get(i); | if(taskInstance.getProcessInstance().getId() == processInstanceId) | { | if(taskInstance.getName().equals("valider_demande")) | { | processInstance.getContextInstance().setVariable("demande", demande); | Transition tr=taskInstance.getTask().getTaskNode().getLeavingTransition("refusee"); | taskInstance.end(tr); | break; | } | } | } | | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233506#4233506 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233506 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
Yep, I meant I may have found a way... At least I think it could be a pretty solution... It must come from Hibernate, maybe it's not possible to manipulate 2 processInstances in the same jbpm session... I'm gonna work on this way (and I have no other idea!) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233388#4233388 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233388 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
Hum I can't do it this way, because I have to retrieve both processInstance after. They have to be explicitely twho processInstance, not one which has been modified. I found a way though, but I can't make it work. I create a new ProcessInstace and give it the var I want. When saving it, I get the exception: save the transient instance before flushing: tokenvariablemap Here is my code: http://pastebin.com/m24690e08 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233230#4233230 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233230 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Clone a Process Instance
Sorry but i did not understand what you're telling me. Yes, I want to keep a trace of my process, but more than that, I wanna split my process in two: - one (which correspond to the part before now) will be ended (processInstance.end() ) - and the second (which correspond to the part after now) will be kept as active View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232262#4232262 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232262 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Retrieveing a var when the class changed
No you're right, it's not particular to jBPM. However, this is something I just found out and I wondered if there was already a solution to this issue View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232255#4232255 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232255 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Retrieveing a var when the class changed
Yep that's the point, I'm storing serialized classes :-( That would be a major problem when upgrading my program... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232143#4232143 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232143 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Clone a Process Instance
Hi, I want to clone a process instance (with all the tokens, variables contained in it, start date etc...), so that after I could modify it with the values I want. Is it possible? ProcessInstance is not cloneable... The aim is that I have to split a process instance in 2 parts, one which will be ended, and another which must continue (that's because every month a user will end all old process Instances and refresh the counters). I don't know if I'm clear enough! Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231977#4231977 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231977 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Retrieveing a var when the class changed
Hi, I'm storing a variable in my process instance. I discovered that if I change a class which is used in this var, jBPM is unable to retrieve the process instance so I can't use the old process instances. Is there a way to make possible to change the classes, and the workflow would be able to retrieve the old ones? (I am especially thinking about new versions of my program) Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231981#4231981 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231981 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm persistance fails after running for a while
And do you know where I could maybe have a look to fix this? I have no idea. Or maybe should I ask MySQL experts? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231315#4231315 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm persistance fails after running for a while
What do you mean by 'partially' ??? When the bug appeared, I checked the connection and everything was alright. I don't know how a connection could be partially closed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231229#4231229 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231229 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm persistance fails after running for a while
Hi, I've got a problem difficult to trace. My application works well, but after a while (I leave in the evening and come back the day after), the persistance is over. I'm running jBPM 3.3.1GA and MySQL 5.1.11, with the JDBC connector mysql-connector-java-5.1.7 here is the log I get: http://pastebin.com/m1c2c39e9 Lika I said, it's hard to debug because it's happening only after a while. Moreover, the MySQL server is still active and running (I also have a login process in my application, and it still works), so I think that the problem comes form jBPM. Here is an example of my code that uses jBPM API, in case of the use of persistance is wrong : http://pastebin.com/m4e20e430 Do you see something wrong? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231214#4231214 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Is mail blocking?
You're right. First, my ActionHandler was a simple class, which did not implement the ActionHandler interface. That was the problem Here is a simple one: import org.jbpm.graph.def.ActionHandler; | import org.jbpm.graph.exe.ExecutionContext; | | public class InvalidEmailAddressExceptionHandler implements ActionHandler { | | private static final long serialVersionUID = 1L; | | public void execute(ExecutionContext executionContext) { | | System.out.println("wrong email"); //FIXME crash when insertion of log into database | | } | | } Now, the other issue has been posted in a new topic : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229030#4229030 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229032#4229032 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229032 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Trying to catch SMTP exception, but leads to SQL exception..
Hi, I'm trying to catch the exception thrown when the SMTP fails. I added an exception handler to my mail node : | | | Here is my action : public class InvalidEmailAddressExceptionHandler implements ActionHandler { | | private static final long serialVersionUID = 1L; | | public void execute(ExecutionContext executionContext) { | System.out.println("wrong email"); | | } | | } I reach this part of code, but just after this, I get an exception: 59516 [http-8080-Processor25] WARN org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == | 59625 [http-8080-Processor25] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 22001 | 59625 [http-8080-Processor25] ERROR org.hibernate.util.JDBCExceptionReporter - Data truncation: Data too long for column 'EXCEPTION_' at row 1 | 06:39:44,234 ERROR WSCreerDemande:175 - error when processing creerDemande : org.jbpm.graph.def.DelegationException: could not insert: [org.jbpm.graph.log.ActionLog] | org.jbpm.graph.def.DelegationException: could not insert: [org.jbpm.graph.log.ActionLog] The entire exception is here: http://pastebin.com/m3b2df339 I nearly understand that the data sent to the MySQL database leads to an overflow when logging the exception. Allthough, the EXCEPTION_ column in jbpm_log is a VARCHAR(4000), and the exception it contains has only 2592 chars. Maybe the problem is not the size, but the text inserted? (charset?!) How can I fix the problem? (and what is exactly the problem?) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229030#4229030 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229030 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Is mail blocking?
Ok it seems my ActionHandler was wrong. But now another problem. It seems jBPM wants to log the exception in the database, and that tjis exception is too long for mysql column : 106375 [http-8080-Processor23] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 22001 | 106375 [http-8080-Processor23] ERROR org.hibernate.util.JDBCExceptionReporter - Data truncation: Data too long for column 'EXCEPTION_' at row 1 | 01:54:05,734 ERROR WSCreerDemande:137 - error when processing creerDemande : org.jbpm.graph.def.DelegationException: could not insert: [org.jbpm.graph.log.ActionLog] | org.jbpm.graph.def.DelegationException: could not insert: [org.jbpm.graph.log.ActionLog] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228879#4228879 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228879 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Is mail blocking?
I still have this problem. Can someone indicate how to use the exception handler? Seems I got something wrong (or a bug in jBPM ?!) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228706#4228706 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228706 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Is mail blocking?
It seems mail node is blocking, I just tried. I would like to handle when the sending of a mail fails. I saw that this node can handle exceptions, so I added one : | #{mailSubject} | #{mailText} | | | | | | | | Result is that I still get the exception, and workflow stops here. I even don't get inside the InvalidEmailAddressExceptionHandler class. What's wrong? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227438#4227438 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227438 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Is mail blocking?
Hi, I want to know if the mail node is blocking the process flow or not? Is it better to put the mail node in a Fork or direclty inside the process flow? Here is my workflow design: http://www.casimages.com/img.php?i=090427111831651970.jpg View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226858#4226858 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226858 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Manually change root token
Hi, I have to write a function that changes the active node in the process. I guess I have to change the root token. I found something like processInstance.getRootToken but how can I change this to the node I want in my workflow? Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224025#4224025 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224025 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM timer and scheduler
Ok maybe I've been too quick. I found on this forum that the class changed. Here is the code to add in the web.xml : | | | JobExecutorServlet | org.jbpm.job.executor.JobExecutorServlet | 1 | | | JobExecutorServlet | /jobs | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223068#4223068 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223068 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jBPM timer and scheduler
Hi, I'm posting here because I can't find lot's of information about how to set up timers in jBPM. I've added a timer to my task : | | System.out.println("Le valideur est trop lent : valide !!!"); | | It seems timers need what you call a scheduler service. After some researches, I find out that I must add this to my web.xml : | | JbpmThreadsServlet | org.jbpm.web.JbpmThreadsServlet | 1 | | | JbpmThreadsServlet | /threads | | I did that, but I find an exception : java.lang.ClassNotFoundException: org.jbpm.web.JbpmThreadsServlet And surprise! There is no such class in my jbpm jar file. I took the last one from jbpm-installer-3.2.6.SP1.jar : jbpm-jpdl.jar On JarSearch, I found that the class is present only in version jbpm-3.1.4.jar and before. So what am I doing wrong, or what did I miss? Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223063#4223063 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223063 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - get all process instance
Hi, I want to get all process instances where a specific token is active. I searched all the API but I could not find what I'm looking for. All I found is getTaskInstances() but this is for a specific process instance Is there a way to retrieve this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219420#4219420 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Persistance and setActorId
Sorry my last message doesn't help. I catched the exception and I came back to the first one : couldn't assign id to TaskInstance(validate) The problem is still there... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217489#4217489 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Persistance and setActorId
Hum the file is in the right place, I mean it is taken because it connects to the database. I added the mapping files of my classes. But I think the problem is somewhere else. When I'm debugging my action, I see that everything is going wrong since I step into the signal() function : boolean response = false; | | //required fields, otherwise an exception is thrown... | if(demande == null || demande.getDemandeur().getUsername().equals("")) { | return false; | } | | // Lookup the pojo persistence context-builder that is configured above | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); | try { | | | ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("demande/processdefinition.xml"); | | | //process definition deployment | //jbpmContext.getGraphSession().deployProcessDefinition(processDefinition); | | | ProcessInstance processInstance = new ProcessInstance(processDefinition); | | //creates the instance variables | processInstance.getContextInstance().setVariable("demande", demande); | processInstance.getContextInstance().setVariable("dateEmissionDemande", new Date()); | | // let's go ! | processInstance.setStart(new Date()); | processInstance.signal(); | | //we check if the current active node is the right one : validation | Token currentToken = processInstance.getRootToken(); | | if(currentToken.getName().equals("validation")) | { | response=true; | } | else | { | response=false; | } | | jbpmContext.save(processInstance); | | } finally { | jbpmContext.close(); | } | | return response; It doesn't go further than processInstance.signal(); It comes directly to the finally. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217478#4217478 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217478 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Persistance and setActorId
In a forum I saw that 3 elements are required for hibernate: - a javabean - a mapping file - a configuration file I wrote the last one only, because in jBPM documentation there is no trace of the others. I also saw that jBPM handle everything for the persistance, so that we just have to execute the contextInstance.setVariable(). Am I right? What did I forget? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217316#4217316 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Persistance and setActorId
Here is my hibernate config file : | | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";> | | | | | jdbc:mysql://localhost:3306/econges | root | unilog | com.mysql.jdbc.Driver | org.hibernate.dialect.MySQLInnoDBDialect | | | It's a quite simple one... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217310#4217310 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217310 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Persistance and setActorId
Hi, I'm trying to assign one people to one task in my Workflow. I added a custom AssignmentHandler : public class CustomAssignmentHandler implements AssignmentHandler { | | private static final long serialVersionUID = 1L; | | public void assign(Assignable assignable, ExecutionContext executionContext) throws Exception { | | Demande demande = (Demande) executionContext.getVariable("demande"); | | | assignable.setActorId(demande.getValideur().getUsername()); | } | | } Here is the interesting part of my process definition : | | | | | | When it comes to this task, I get an exception : Unknown entity: org.jbpm.taskmgmt.exe.TaskInstance Details about the exception here : http://pastebin.com/m457e5848 I found nothing when googling... What do you think about this ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216896#4216896 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216896 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Need some advices on a workflow
Strange, all I see in the examples is a signal() call View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214508#4214508 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214508 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Need some advices on a workflow
you mean that I should not use the signal() method ? That is what I meant by "push the token" View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214453#4214453 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214453 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Need some advices on a workflow
So when someone manually validates the query I'll have to stop the timer and push the token ? Is it the right way ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214403#4214403 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214403 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Need some advices on a workflow
By wrongly represented, I mean that I must be at one time in two nodes : - the one which waits until X days - the one which waits the manual validation So I guess I must have something like a fork in my workflow, so that it is possible for me to be in two nodes at the same time. But if I add the fork, I have to wait until both tasks are completed, and I don't want that. I don't know if I'm clear enough. And to answer to your questions : - The query is sent at the start state - I enter the node 'attente_accord_tacite' when the time declared in the query is reached Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213718#4213718 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213718 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Need some advices on a workflow
Hello, I'm building a simple workflow. Its aim is to validate a process. A query is sent, and a validator must validate it or refuse it. The problem is that when the query is sent, a timer is set and after some time, if the validator did nothing the query must be accepted. Here is my Workflow design, but I think that the left part is wrongly represented in jBPM : http://www.zimage.biz/photo.php?id=5077 The task "attente_accord_tacite" means to wait some time. Thanks for your advice[/img] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213610#4213610 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213610 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: The point on jBPM 3.3.1 installation
I reverted to jBoss 4.2.3 ant it works well now. I still don't know what the problem for 5.0.0 is. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4208530#4208530 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4208530 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: The point on jBPM 3.3.1 installation
Hum I found nothing in jira refering to this problem. All I try to do in fact is a manual installation of jBPM over a jBoss 5.0.0 server. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4208417#4208417 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4208417 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - The point on jBPM 3.3.1 installation
Hi, I'll explain my try to install jBPM 3.3.1 development environment. OS : Windows Server 2003 jBPM 3.3.1.GA jboss-5.0.0.GA-jdk6 eclipse-jee-ganymede-SR1-win32 1st try : - execute jBPM-installer-3.3.1.GA.jar - check the optionnal component jBoss-5.0.0 result : error download-jboss: | [get] Getting: http://downloads.sourceforge.net/jboss/jboss-5.0.0.GA.zip?modtime=1228452561&big_mirror=1 | [get] To: C:\eConges\test\Uninstaller\jboss-5.0.0.GA.zip | [get] Error getting http://downloads.sourceforge.net/jboss/jboss-5.0.0.GA.zip?modtime=1228452561&big_mirror=1 to C:\eConges\test\Uninstaller\jboss-5.0.0.GA.zip 2nd try : - manual download and install of jBoss-5.0.0 before - execute jBPM-installer-3.3.1.GA.jar without checking optionnal component - jBoss home directory is the folder where I unpacked it Result : jBoss server starts, but accessing to 127.0.0.1:8080/jbpm-console fails (empty page). Explanation : "Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar" After some researches I replace the facelet jsf-facelets-1.1.14.jar from the jBoss server by the last one : jsf-facelets.jar (from 1.1.15 download) Result : I have access to the jBoss server, and to the jbpm-console BUT - accessing to the server from eclipse is impossible (server deployer : /jbpm-console/upload) - I can log into jbpm-console but when I try to manage the processes it fails (error 500) : http://pastebin.com/m114bb8d5 Here is the log of the server start : http://pastebin.com/m68552eed Now is there any way to install it properly ?! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4208212#4208212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4208212 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with task form generation with defined variables
Shame, so I guess it is better just to enter all vars when generating forms, not before am I right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207726#4207726 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem with task form generation with defined variables
Is there any chance that this functionnality will be implemented soon?! I just downloaded the last version (jbpm-jpdl-suite-3.2.3) but the problem still exists View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207602#4207602 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207602 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user