[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread cpob
You have to add the Handler to the decision node for it to work. Look at the API for Decision. There's a setAction method. Create a new action and set it to the decision object using that method. You'll have to investigate what creating a new action involves (you have to create a new Action

[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread cpob
That is how you define actions... almost. Actions do not always have to be with events. An action can be defined inside a Node (or Decision) as well. You're on the right path, but don't be too quick to give up. You gotta make sure all the elements are set up properly Try doing a

[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread cpob
You're right... It looks like decision doesn't allow you to programmatically create the decision handler. My suggestion is to build jBPM yourself, and add in a method in Decision that allows you to set the decisionDelegation. Building jBPM yourself is easy, I'm doing it currently for some

[JBoss-user] [JBoss jBPM] - Re: [jBPM][3.1.1] Get a timer instance with API

2006-07-10 Thread cpob
This looks like a bug to me. I made a change in Timer.java to fix this. I inserted a line around line # 75 (in the execute() method): executionContext.setTimer( this ); This sets the execution context's timer properly. I have yet to write a JIRA issue for this though. View the original post :

[JBoss-user] [JBoss jBPM] - Re: ActionHandler in node not called unless inside transitio

2006-07-07 Thread cpob
Action is not a valid element inside of state. A state is just a 'wait-state' that sits there until someone signals the token out of it. If you want a state that performs an action like that, use a node element. You are allowed to put an action inside the node element like you are trying with

[JBoss-user] [JBoss jBPM] - Re: How to invoke a business process in JBoss

2006-07-07 Thread cpob
I almost posted a reply before Ronald did, and it was almost identical to what he replied (the 4 listed responses at least). Going through the source code for the WebApp provides a lot of help too, if you haven't looked. Now, back to your first question, you say: brado wrote : in the

[JBoss-user] [JBoss jBPM] - Re: Task Management Definition maps tasks by name

2006-07-05 Thread cpob
Reported - http://jira.jboss.com/jira/browse/JBPM-689 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955496#3955496 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955496 Using Tomcat but need to do more? Need to support

[JBoss-user] [JBoss jBPM] - Re: create swimlane programmatically

2006-07-05 Thread cpob
You programmatically create the swimlane, but you don't tie it to anything in the Process Definition. You'll have to add the swimlane to the processdefinition's task management definition: | pd.getTaskMgmtDefinition().addSwimlane(s); | View the original post :

[JBoss-user] [JBoss jBPM] - Re: function for print the active task and process.

2006-06-30 Thread cpob
This is something which is in the jbpm sample webapp. I suggest you dig through the webapp code and become more familiar with their code, as it has many examples. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954669#3954669 Reply to the post :

[JBoss-user] [JBoss jBPM] - Re: Urgent , pb with the hibernate session

2006-06-30 Thread cpob
mneja82 wrote : kukeltje wrote : I'm not going to be nice (I think) but could the problem be that you are a beginner in Java to? | | So please a solution The problem is, this error is immediately obvious to someone with any decent Java experience. Unfortunately, this is not the place for

[JBoss-user] [JBoss jBPM] - Task Management Definition maps tasks by name

2006-06-30 Thread cpob
In our web application, we are digesting the process definition to manipulate it to our liking before we deploy it. We take the .par file from the user, we go through the ProcessDefinition object to add our events/actions/assignment handlers/etc, and then deploy that. I ran into a problem

[JBoss-user] [JBoss jBPM] - Re: Task Management Definition maps tasks by name

2006-06-30 Thread cpob
Nevermind my last paragarph, I realize you can just do a TaskNode.getTasks(), and that should give me tasks for each node (if I iterate over each node). It still seems like a bug that there's no restriction over task names when editing through the GPD or deploying, or... something. View the

[JBoss-user] [JBoss jBPM] - Re: spawning multiples subprocess instances

2006-06-29 Thread cpob
You could always delete those transitions after you go to them. Could you just create new child tokens from the root, and then just do the token.setNode( yourNode ); for each of them to force them on there without changing the process definition? View the original post :

[JBoss-user] [JBoss jBPM] - Re: spawning multiples subprocess instances

2006-06-29 Thread cpob
smalbequi wrote : concerning the solution to delete the transition, i think the join will never do it's job. As long as the join receives all of the child tokens created in the fork, the join will complete. Since your subprocess will finish X number of times, then all those tokens should move

[JBoss-user] [JBoss jBPM] - Re: State events fire order

2006-06-28 Thread cpob
What you need to think about is separation of processes. You need to ignore the node enter on to your Node(First) That happened with the previous signal, and does not happen in the signal while your token is in 'First' For example, we have a simple graph, made of 2 simple nodes, A and B.

[JBoss-user] [JBoss jBPM] - Re: having custom node with gpd

2006-06-28 Thread cpob
Since it is an open source product, of course it is possible, if you want to edit and compile the GPD. However, that being said, you need a fair amount of experience with numerous technologies to rebuild the GPD. Eclipse plugin development, SWT, GEF, etc. The current state does not support

[JBoss-user] [JBoss jBPM] - Re: spawning multiples subprocess instances

2006-06-28 Thread cpob
Couldn't you also just use a fork, have n transitions to the sub process node and then a single transition from the join? Like this: ?xml version=1.0 encoding=UTF-8? | | process-definition name=process | !-- START-STATE -- start-state name=start | task name=task/task |

[JBoss-user] [JBoss jBPM] - Re: task-assign event firing

2006-06-28 Thread cpob
From my understanding, you have the event ... element in the wrong section. task-assign events have to be inside the element to identify what task it is associated with. http://docs.jboss.com/jbpm/v3/userguide/jpdl.html#task.element Look at the user guide's schema layout. They have the

[JBoss-user] [JBoss jBPM] - Re: task-assign event firing

2006-06-28 Thread cpob
Then again, http://docs.jboss.com/jbpm/v3/userguide/jpdl.html#processdefinition.element does show events as being able to be defined in the process definition, but not much detail specifically there. View the original post :

[JBoss-user] [JBoss jBPM] - Re: task-assign event firing

2006-06-28 Thread cpob
Once again, I'll post to this thread, sorry for all the replies. I tested it out, where you have your event is ok, that works fine. (At least it does with user(bert) for me). Now, with a group, perhaps it doesn't fire because it is technically not being directly assigned to anyone, just

[JBoss-user] [JBoss jBPM] - Re: task-assign event firing

2006-06-28 Thread cpob
Ronald, so when it is assigned to a group, that event should be firing also? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3954040#3954040 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954040 Using Tomcat but need to do

[JBoss-user] [JBoss jBPM] - Re: task-assign event firing

2006-06-28 Thread cpob
I was going to agree with the 2nd event for group assign events, but then I started debating myself. Either way, I agree that something should be done. I just searched the JIRA and didn't see anything related to task-assign and pooled/groups. smokeman, in the meantime, you could always just

[JBoss-user] [JBoss jBPM] - Re: task-assign event firing

2006-06-28 Thread cpob
I'd suggest you create a JIRA issue (after making sure there's none previously, I did a quick search w/ no results). If you do, I'll vote on it, because I support that something needs to be done about it. It could lead into a world of debate as to which way to handle the event though, which

[JBoss-user] [JBoss jBPM] - Re: State events fire order

2006-06-27 Thread cpob
I got a different order. You have to have a BEFORE SIGNAL, before you can even leave the node, then you leave the node, then you enter the NEXT NODE,a nd then it's the after signal. Below is the processdefinition.xml I used ?xml version=1.0 encoding=UTF-8? | | process-definition |

[JBoss-user] [JBoss jBPM] - Re: State events fire order

2006-06-27 Thread cpob
Sorry, I forgot to post my log: 12:46:16,671 DEBUG [GraphElement] event 'before-signal' on 'StartState(start)' for 'Token(/)' | 12:46:16,671 DEBUG [GraphElement] event 'node-leave' on 'StartState(start)' for'Token(/)' | 12:46:16,671 DEBUG [GraphElement] event 'transition' on 'Transition(to

[JBoss-user] [JBoss jBPM] - Re: How to deploy a .par file?

2006-06-23 Thread cpob
DerJohannes wrote : I have been searching for a long time to find out how to deploy in java a .par archive... There are numerous sources,readily available, instructing how to deploy. I posted to a recent thread at http://www.jboss.com/index.html?module=bbop=viewtopict=85365 about how to

[JBoss-user] [JBoss jBPM] - Re: Using Jbpm witout webapp

2006-06-23 Thread cpob
chimera84 wrote : I'm a newbie in Jboss and jbpm : | | Does anyone have an example on how to access to the Jbpm engine not beeing in a webapp. The Junit test cases given in the starter kit look fine but they do not access to a procress deployed on jboss. | | Futhermore, How can I

[JBoss-user] [JBoss jBPM] - Re: Using Jbpm witout webapp

2006-06-23 Thread cpob
Well, since you were going to be using jBPM without a webapp, I assumed you were not going to be running inside of any application server. What exactly is it that you want to do? Then we'll have a better understanding for how to help. Do you want a standalone desktop Java application to do

[JBoss-user] [JBoss jBPM] - Re: Using Jbpm witout webapp

2006-06-23 Thread cpob
Perhaps you could collaborate with the other person requesting a MBean to work on one together, and then contribute that to the project? :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953000#3953000 Reply to the post :

[JBoss-user] [JBoss jBPM] - Re: redeploying processDef problem

2006-06-23 Thread cpob
anonymous wrote : ProcessDefinition procDef = ProcessDefinition.parseXmlResource(mapName); Sounds like that mapName is being incorrectly specified, or is pointing to the old xml? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953084#3953084 Reply to the

[JBoss-user] [JBoss jBPM] - Re: How to programatically deploy a PAR to a remote JBoss in

2006-06-21 Thread cpob
If you check the JUnit tests, org/jbpm/jpdl/par/ProcessArchiveDeploymentDbTest.java has examples on how to build a simple .par, as well as deploy it. The deploy: ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(your/par/file/name/here)); | ProcessDefinition

[JBoss-user] [JBoss jBPM] - Re: How to programatically deploy a PAR to a remote JBoss in

2006-06-21 Thread cpob
Unfortunately, no. According to the FAQ in the Wiki: anonymous wrote : Does jBPM have JMX integration and if so, how does it look like? | | In the starters-kit, jBPM comes deployed as an MBean. But for the moment, this mbean is only used to put the JbpmConfiguration? in JNDI. No