-
15. Re: Timer for mail node or task node??
tejjbpm May 13, 2009 6:38 AM (in response to tejjbpm)I fixed the above error with by adding an action tag around mail ( just guessed it..is it right? )
<timer duedate="2 minutes" name="reminder" repeat="yes"> <action> <mail name="notification" template="custom-test"/> </action> </timer>
But now there is no notification being sent..I have added a custom template in the jbpm.templates - so that is not the issue definitely..if i add a reminder it works - so my mail configuration is fine.,
what is wrong????? -
16. Re: Timer for mail node or task node??
swatis May 13, 2009 6:41 AM (in response to tejjbpm)because there is no action class defined in action tag attribute "class". Put your timer tag inside task tag.
-
17. Re: Timer for mail node or task node??
tejjbpm May 13, 2009 6:54 AM (in response to tejjbpm)we both posted at same time i guess..:)
It does not work in that way too..here is the actual complete code..I have even tried to put timer task in a seperate tag but deployment fails either way..the error message is same as posted before<task-node name="rev"> <task name="prev" blocking="true" swimlane="property"> <description> sent for approval </description> <controller class="com.package.mycontroller"></controller> </task> <task> <timer duedate="2 minutes" name="reminder" repeat="yes"> <mail name="notification" template="custom-test"/> </timer> </task> <transition to="test " name="test info needed"></transition> </task-node>
-
18. Re: Timer for mail node or task node??
swatis May 13, 2009 7:45 AM (in response to tejjbpm)hmm.. you created another task in task-node ... in the task "prev" only put timer tag
-
19. Re: Timer for mail node or task node??
tejjbpm May 13, 2009 7:49 AM (in response to tejjbpm)i told you ..i tried both but in vain :( ..the exception is same either way
org.jbpm.jpdl.JpdlException: [[ERROR] line 270: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mail'. One of '{"urn:jbpm.org:jpdl-3.2":action, "urn:jbpm.org:jpdl-3.2":script}' is expected.,
-
20. Re: Timer for mail node or task node??
swatis May 13, 2009 7:56 AM (in response to tejjbpm)ok lets try this one dont put anything in xmlns attribute...leave it blank
<process-definition
xmlns="" name="Workflow"> -
21. Re: Timer for mail node or task node??
tejjbpm May 13, 2009 8:05 AM (in response to tejjbpm)you are genius :)..thanks a lot
It worked fine..can i just leave that empty all the time
It had "urn:jbpm.org:jpdl-3.2" as content..will it affect any other functionality.. -
22. Re: Timer for mail node or task node??
tejjbpm May 13, 2009 10:07 AM (in response to tejjbpm)Just for others who search for a similar problem..it is not really good a idea to remove xmlns namespace to make this work..
Thanks swatis for following up and giving your valuable suggestions - but i think by removing a strict namespace like this i might end up breaking some of the existing code .. -
23. Re: Timer for mail node or task node??
swatis May 14, 2009 12:01 AM (in response to tejjbpm)<task-node name="task1"> <task name="task1"> <timer name='reminder1' duedate='20 seconds' repeat='30 seconds'> <action ref-name="hello"></action> </timer> </task> <transition name="" to="end1"></transition> </task-node> <end-state name="end1"></end-state> <mail name="hello" template="task-error"></mail>
No need to keep namespace blank. :). -
24. Re: Timer for mail node or task node??
tejjbpm May 14, 2009 4:28 AM (in response to tejjbpm)swatis - thanks a lot..it works fine..:)