[JBoss jBPM] - Re: Mutiple timers in a task node problem
by Tal
Hi,
I've created an example process, one task node, two timers on it which represents two sla timers (i.e. should invoke an action that will send a reminder to the task actor if not acting on time), what happens is the same, first one is executed, second one is not, still the same differences in the database:
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="" name="example">
example_process
<start-state name="start-state1">
</start-state>
<task-node name="task-node1">
<assignment actor-id="ADMIN">
<action name="action1" expression="#{wfAction.write('Action #1 invoked')}
">
<action name="Action2" expression="#{wfAction.write('Action #2 invoked')}
">
</task-node>
<end-state name="end-state1"></end-state>
</process-definition>
***************
The WfAction class:
@Name("wfAction")
public class WfAction {
public void write(String s) {
System.out.println(s);
}
}
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227854#4227854
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227854
15 years, 9 months
[JBoss jBPM] - management user's tasks
by Noureddine Dahmen
Hello,
I use jbpm3.2.3 and tried to give each task to a specific user using the "assignment". But it each user can perform all tasks even those who do it are not affected.
I found this problem posted in several forums but I did not find an answer.
Is there another way to manage permissions Jbpm and that each user can only perform its tasks.
Thank you for your help.
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="holiday-request">
|
|
| <start-state name="enter request">
| <task name="request entry">
| <assignment actor-id="user"></assignment>
| <controller>
| <variable access="read,write,required" name="start date"></variable>
| <variable access="read,write" name="duration"></variable>
| </controller>
| </task>
| <transition to="evaluate request" name="transmit"></transition>
| </start-state>
|
|
| <task-node name="evaluate request">
| <task name="request evaluation">
| <assignment actor-id="manager"></assignment>
| </task>
| <transition to="give additional info" name="more info needed"></transition>
| <transition to="end" name="approve/disapprove"></transition>
| </task-node>
|
| <task-node name="give additional info">
| <task name="additional info enter">
| <assignment actor-id="user"></assignment>
| <controller>
| <variable access="read,write" name="start date"></variable>
| <variable access="read,write" name="duration"></variable>
| <variable access="read,write" name="info"></variable>
| </controller>
| </task>
| <transition to="evaluate request"></transition>
| </task-node>
|
| <end-state name="end"></end-state>
| </process-definition>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227762#4227762
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227762
15 years, 9 months
[JBoss jBPM] - Configuration scheduler
by schllitti
Hi,
I'm a beginner in working with JBoss jbpm 3.2.6SP1.
I want to add a timer in my process, but I get the error
org.jbpm.svc.JbpmServiceException: service 'scheduler' unavailable
| at org.jbpm.svc.Services.getCurrentService(Services.java:96)
| at org.jbpm.svc.Services.getCurrentService(Services.java:86)
| at org.jbpm.scheduler.def.CancelTimerAction.execute(CancelTimerAction.java:45)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281)
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:238)
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:212)
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:195)
| at org.jbpm.graph.def.Node.leave(Node.java:464)
| at org.jbpm.graph.node.StartState.leave(StartState.java:80)
| at org.jbpm.graph.exe.Token.signal(Token.java:226)
| at org.jbpm.graph.exe.Token.signal(Token.java:149)
| at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:304)
| at my.test.Anne.timer.timer.TimerTest.testTimer(TimerTest.java:56)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
I don't want to work with a server or a database, I only need the JBoss jbpm for my project. So where must I configurate the scheduler?
Thanks Anne
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227696#4227696
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227696
15 years, 9 months
[JBoss jBPM] - Re: Design Patterns
by rwallis
1) The log file could be a problem... thanks
2) the token does reach the join and continues on through (we though the same thing but upon testing and looking at what the database did, it worked)
3) there are two functional requirements:
a) I'll skip the batch processing functional requirements because at this point they are vague. (Basically processing as files are uploaded into a directory or when a record in an external database is updated, etc. and probably the challenge here is more in deciding to write a custom action or a custom node... or because logging could get out of control don't do it in jBPM.
b) User has a task but supervisor should also get a task every day task sits in processors list of tasks. All tasks as related to the initial task from a reporting standpoint.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227639#4227639
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227639
15 years, 9 months