[JBoss jBPM] - Re: the best way for this kind of assignment?
by clandestino_bgd
Hi, here is the answer (to my own question):
1. In task-node (on node-enter event) I create N task instances for particular task (inside ActionHandler). A task belongs to the swimlane, which has assignment handler that sets pooled actors.
2. User lists all pooled tasks, takes first found and sets his username as actorId for that task instance.
3. On task-assign event, I am calling ActionHandler, which invokes Web Service asynchronously.
4. When WS makes a callback, I have method which starts task instance and makes it available for external user.
The task node snippet:
| <task-node name="annotate" create-tasks="false">
| <event type="node-enter">
| <action name="createAnnotationTasksActionHandler"
| class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy"
| config-type="bean">
| <targetBean>createAnnotationTasksActionHandler</targetBean>
| </action>
| </event>
| <event type="task-assign">
| <action name="gasActionHandler"
| class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy"
| config-type="bean">
| </action>
| </event>
|
| <task description="Annotate Document" swimlane="annotator"></task>
| <transition to="join1"></transition>
| </task-node>
|
best,
Milan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164348#4164348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164348
17 years, 12 months
[JBoss Tools (users)] - Re: JBoss Tools targeting Eclipse 3.4/Ganymede
by bhardwaj_rajesh
Hi
I am using Jbosstools with eclipse 3.4 . I get exception when I try to oper hybernate cfg xml file.
I am using tools stable version from the update site -
java.lang.NullPointerException
at org.jboss.tools.common.editor.TreeFormPage.initialize(TreeFormPage.java:141)
at org.jboss.tools.hibernate.ui.xml.editor.HibConfig3CompoundEditor.doCreatePages(HibConfig3CompoundEditor.java:33)
at org.jboss.tools.common.editor.ObjectMultiPageEditor.createPages(ObjectMultiPageEditor.java:235)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:310)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:263)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1410)
at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:944)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1361)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Any ideas
regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164347#4164347
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164347
17 years, 12 months