[JBoss Seam] - Abandon a taskInstance
by szaccaria
Hello again,
Suppose I want to exit from a bussines process for after re-enter in a second moment, how can reach this?
I'll try to explain it in best way:
I've a simple process definition like this:
| <process-definition
| name="todo">
|
| <start-state name="start">
| <transition to="task1"/>
| </start-state>
|
| <task-node name="task1">
| <task name="todo" description="dosomething">
| <assignment actor-id="actor1"/>
| </task>
| <transition to="done" name="end"/>
| </task-node>
|
| <end-state name="done"/>
|
| </process-definition>
|
And I've a user action that start a process:
| @Stateless
| @Name("todoMachine")
| public class TodoMachineAction implements TodoMachine {
|
| @CreateProcess(definition="todo")
| public String newTodo() {
| return "home";
| }
| ...
| ...
| ...
| ...
| }
|
So I've a web page that listing the task assign to the actor "actor1" like the "todo" example of Seam example.
Suppose the actor1 start a task with the action :
| @StartTask
| public void write() {
| .... make something ....
| return "writesomething.xhtml";
| }
|
And this action redirect to a web page where actor1 write something....
So the actor1 want to exit from this task but not close it, with example
| @EndTask
| public void done() {
| .... make something ....
| return "endtodo.xhtml";
| }
|
but he want return in this task later for continues his work, whit something like this:
| public void suspendTask() {
| .... make something ....
| return "listTask.xhtml";
| }
|
|
|
Ofcourse He find the task in the list task open or open yet
Moreover suppose that the actor1 remain in the page until expire the session time, what happen at the taskinstance on the session?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063145#4063145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063145
18Â years, 11Â months
[JBoss jBPM] - Selecting non-string valued variable instances
by pbrewer_uk
I'm using Hibernate 3.2.2 and jBPM 3.1.4 in a Seam 1.2.1GA environment.
I have a problem with a query that should return VariableInstance entities based on a particular name and value. The variable instance is actually an instance of org.jbpm.context.exe.variableinstance.LongInstance.
The following query returns lots of rows and one of these results shows the value as 1654.
| SELECT
| vi
| FROM
| org.jbpm.context.exe.VariableInstance vi
| WHERE
| vi.name = 'memberId'
|
However, when I then run the following query, no results are returned.
| SELECT
| vi
| FROM
| org.jbpm.context.exe.VariableInstance vi
| WHERE
| vi.name = 'memberId'
| AND
| vi.value = 1654
|
How can I select a variable instance based on a long value? Any hints or suggestions would be greatly appreciated, as I really have run out of ideas!
Thanks in advance, Pete.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063141#4063141
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063141
18Â years, 11Â months
[JBoss jBPM] - FileUploadException
by Heiner Niehues
Hi
I am new with jBPM and my first successful try was with jbpm-starters-kit-3.1.4. I could also upload a new process with Eclipse.
To be up-to-date I download the packet: jbpm-jpdl-suite-3.2.1.zip
The Jboss runs and i can create new users and start processes.
But i can't deploy a new process, when I try to deploy the 'processdefinition.xml' by using the jbpm-console i get the exception:
Error deploying process: An exception of type "org.jbpm.jpdl.JpdlException" was thrown. The message is: [[ERROR] no processdefinition.xml inside process archive]
when I try to deploy with Eclipse i get this JBoss throws this Exception.
12:45:52,359 ERROR [STDERR] org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
12:45:52,359 ERROR [STDERR] at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:324)
12:45:52,359 ERROR [STDERR] at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268)
12:45:52,359 ERROR [STDERR] at org.jbpm.web.ProcessUploadServlet.handleRequest(ProcessUploadServlet.java:72)
12:45:52,359 ERROR [STDERR] at org.jbpm.web.ProcessUploadServlet.service(ProcessUploadServlet.java:56)
12:45:52,359 ERROR [STDERR] at Source)
Is it possible to download or get the source code of the jbpm-console ?
Or exist somewhere a open-source or similar project with source ?
More one thing.. I have some problems to add the Desginer Plug-in to Eclipse 3.3. Its workd with an old Version 3.2 ( inside the jbpm-jpdl-3.2.Beta1 packet ) work it. Has somebody else also this
problem?
I hope somebody can help me.
heiner
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063137#4063137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063137
18Â years, 11Â months
[JBoss Seam] - s:selectItems question
by sunil.su
Hi,
I'm using seam 1.2.1 and JBoss AS 4.0.5,
Here is the selectOneMenu in my page
| <tr>
| <td>Org Level:</td>
| <td>
| <s:decorate>
| <h:panelGroup>
| <h:selectOneMenu value = "#{orgEntry.orgLevel}">
| <s:selectItems value="#{orgLevels}" var="orgLevel" label="#{orgLevel.name}" noSelectionLabel="#{orgEntry.orgLevel.name}"/>
| </h:selectOneMenu>
| </h:panelGroup>
| </s:decorate>
| </td>
| </tr>
|
When the page is rendered, the value selected is not the "noSelectionLabel", but the last entry in my orgLevels list. When I click on the drop down, I see the "noSelectionLabel" value as the first entry in the list.
How do I make the noSelectionLabel as the default selection?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063135#4063135
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063135
18Â years, 11Â months