[jboss-user] [JBoss Seam] - bookmarkable and friendly url's

2007-10-31 Thread ricardomarques
Hi guys 

I know that seam enhances JSF, but does seam handle bookmarkable url', i 
remenber that if faces it a bit complicated deal with it because the pamateres 
are hidden and there is no easy bean initialization, also usually during a 
postback a page losses his parameters.


Does seam enhances this model, or the same issues exist on seam?

I'm asking this because bookmarkable and friendly url's are a requirement for 
my application, and i'm wondering is seam is the right choice?

thanks in advanced

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100598#4100598

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100598
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Evaluating Seam

2007-10-16 Thread ricardomarques
Hi Guys 

I evaluating some tecnologies for start the development of a portal system, 
Seam ringed my bell because I want to use EJB I need to develop using 
componentes like in Faces.

But i recently develop my first seriouslly application in Faces and honestly i 
get disapointed by the way the navigation is handled and how we work around to 
work with GET and POST parameters, bean initialization and updated url's.

So does Seam enhance this? Can I work with GET and POST parameters easily?

On the ORM layer, for what I seen Seam uses EJB persistence, well i was 
thinking using persistence with Hibernate, just simple because I have so 
know-how about it, so Seam + EJB + hibernate is peacefull?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095720#4095720

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095720
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - assigning user to taskinstance, does nothing

2007-08-22 Thread ricardomarques
Hi guys

I'm trying to reassign a task instance to a new user, but i can't, the 
information don't get saved on database, and i get no error output, i think 
that's some with the way that the connection to the engine is made.

I open a connection when the first JSF phase begins and ended when the JSF las 
phase ends.

were are some code:


Code from my Command interface implementation:


  | public Object execute(JbpmContext jbpmContext) throws Exception {
  | 
  | /* Verify if all the needed attributes are set */
  | if ((this.taskInstanceId == 0) || (this.username == null))
  | throw new NotSetWorkflowException(missing required command 
attributes!);
  | 
  | /* updates the task instance with new actor */
  | TaskInstance taskInstance = 
jbpmContext.getTaskInstanceForUpdate(this.taskInstanceId);
  | taskInstance.setActorId(username,true);
  | 
  | return taskInstance;
  | }
  | 


This code is called like this:


  | Command cmd = new AssignUserToTaskCommand(taskInstanceId,username);
  | engine.execute(cmd); // - this calls the command.execute()
  | 


my phase listenner:


  | public void beforePhase(PhaseEvent phaseEvent) {
  | 
  | if (phaseEvent.getPhaseId() == PhaseId.RESTORE_VIEW) {
  | getJbpmEngine(phaseEvent).openJbpmContext();
  | }
  | 
  | }
  | 
  | public void afterPhase(PhaseEvent phaseEvent) {
  | 
  | if (phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE) {
  | getJbpmEngine(phaseEvent).closeJbpmContext();
  | }
  | 
  | }
  | 
  | 


Jbpm: 3.2.1
mysql 5
Jboss 4.0.5


I appreciate some feedback on this please, thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076876#4076876

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076876
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: can't get group task list with pooled actors

2007-08-09 Thread ricardomarques
no feedback? :(

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4072508#4072508

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4072508
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - can't get group task list with pooled actors

2007-08-07 Thread ricardomarques
hi guys 

I have a process definition to test the use of groups, and for that a assign a 
group to task inserir dados, but when i try to fetch the group list, she's 
empty.

Also i debug the code until the hibernate query, i don't know HQL, but i look 
at the conditions, and looked at the tables, and the information is present.

I'm using jbpm 3.2.1 and mysql 5 and jboss 4.0.5

thanks

Process definiiton:


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=  name=wscall com groups
  |start-state name=inicio
  |   transition name= to=perguntar/transition
  |/start-state
  |node name=ws
  |   event type=node-enter
  |  action name=wscall 
class=com.sample.action.MessageActionHandler/action
  |   /event
  |   transition name= to=confirmar dados/transition
  |/node
  |end-state name=fim/end-state
  |task-node name=perguntar
  |   task name=inserir dados
  |  assignment expression=group(sales)/assignment
  |  controller
  | variable name=valor1 access=read,write,required/variable
  | variable name=valor2 access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=ws/transition
  |/task-node
  |task-node name=confirmar dados
  |   task name=confirmar dados
  |  assignment expression=user(grover)/assignment
  |  controller
  | variable name=resultado access=read/variable
  | variable name=aceitar 
access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=decision1/transition
  |/task-node
  |decision name=decision1
  |   transition name= to=fim
  | condition expression=#{ aceitar == 'sim' } /
  |   /transition
  |   transition name=tr2 to=perguntar
  | condition expression=#{ aceitar != 'sim' } /
  |   /transition
  |/decision
  | /process-definition
  | 

Hibernate query:


  | query name=TaskMgmtSession.findPooledTaskInstancesByActorId
  | ![CDATA[
  |   select distinct ti
  |   from org.jbpm.taskmgmt.exe.PooledActor pooledActor
  |join pooledActor.taskInstances ti
  |   where pooledActor.actorId = :swimlaneActorId
  | and ti.actorId is null
  | and ti.isSuspended != true
  | and ti.isOpen = true
  | ]]
  |   /query
  | 


Code to get the group tasklist:


  | try {
  | engine.open();
  | 
  | List result = 
engine.getContext().getTaskMgmtSession().findPooledTaskInstances(this.name);
  | 
  | model = new ListDataModel(result);
  | }
  | catch (Exception e) {
  | ...
  | }
  | finally {
  | 
  | engine.close();
  | return model;
  | }
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071625#4071625

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071625
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - LinkageError

2007-07-20 Thread ricardomarques
Hi guys

I having this error on JBoss AS 4.0.5 all it points that the error comes from 
the application server or hibernate, so I posting here. I'm kind of desperate 
with this problem so any help would be great.


  | 10:38:17,531 ERROR [STDERR] java.lang.LinkageError: loader constraints 
violated when linking javax/transaction/Synchronization class
  | 10:38:17,531 ERROR [STDERR] at 
org.jbpm.db.JobSession.deleteJobsForProcessInstance(JobSession.java:208)
  | 10:38:17,531 ERROR [STDERR] at 
org.jbpm.scheduler.db.DbSchedulerService.deleteTimersByProcessInstance(DbSchedulerService.java:54)
  | 10:38:17,531 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:329)
  | 10:38:18,031 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:38:18,031 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:38:18,031 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:38:18,031 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 10:38:18,031 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 10:38:18,031 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$ea5cad95.end(generated)
  | 10:38:18,531 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.notifyParentOfTokenEnd(Token.java:331)
  | 10:38:18,531 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.end(Token.java:303)
  | 10:38:18,531 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.end(Token.java:253)
  | 10:38:18,531 ERROR [STDERR] at 
org.jbpm.graph.node.EndState.execute(EndState.java:59)
  | 10:38:18,531 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 10:38:18,531 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:38:18,531 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:38:18,531 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:38:18,531 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 10:38:18,531 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 10:38:19,031 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$c0df1156.enter(generated)
  | 10:38:19,031 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 10:38:19,031 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 10:38:19,031 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:357)
  | 10:38:19,031 ERROR [STDERR] at 
org.jbpm.graph.def.Node.execute(Node.java:349)
  | 10:38:19,031 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 10:38:19,031 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:38:19,031 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:38:19,531 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:38:19,531 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 10:38:19,531 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 10:38:19,531 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$c0df1156.enter(generated)
  | 10:38:19,531 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 10:38:20,031 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 10:38:20,031 ERROR [STDERR] at 
org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:136)
  | 10:38:20,031 ERROR [STDERR] at 
org.jbpm.graph.node.Decision.execute(Decision.java:152)
  | 10:38:20,031 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 10:38:20,031 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:38:20,031 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:38:20,031 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:38:20,531 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 10:38:20,531 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 10:38:20,531 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$c0df1156.enter(generated)
  | 10:38:20,531 ERROR [STDERR] at 

[jboss-user] [JBoss jBPM] - Re: LinkageError

2007-07-19 Thread ricardomarques
I'm wandering if I'm ending a task instance correctly since I can figure out 
the problem.


  | engine.openSession();
  | JbpmContext jbpmContext = engine.getJbpmContext();
  | 
  | 
  | TaskInstance taskInstance = 
jbpmContext.getTaskInstance(taskInstanceId);
  | 
  | if (map != null  map.size()  0) {
  | taskInstance.setVariables(map);
  | }
  | 
  | 
  | taskInstance.end(transition);
  | 
  | engine.closeSession();
  | 
  | 

Is this code correct? is it usual to use it like this?

This only gives me problem's when the next node is a decision node.

thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065898#4065898

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065898
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: LinkageError

2007-07-17 Thread ricardomarques
kukeltje wrote : from what I read in other forums and on the internet, could 
be related to classsloading issues or two things accessing the same 
transaction. Sorry, but I hope you can investigate this a little further 
yourself. That would be very helpful

yeah, but i'm following the code to a deeper level than my knowledge, so is a 
bit difficult, but I will be posting here any process, perhaps with some more 
detail and with your knowledge, we could comprehend what is happening.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064948#4064948

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064948
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: LinkageError

2007-07-17 Thread ricardomarques
estaub wrote : Ricardo,
  | I'm no expert, but I'd be looking at your database and transaction 
configurations.  What database are you using?  It looks like you're running in 
Tomcat - yes?
  | 

i'm using jboss 4.0.5 and mysql 5

What I think thats weird is that i'm using only the command interface, so I 
suppose that it's something from the core, or not :)

I will analyze what i said.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065009#4065009

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065009
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: LinkageError

2007-07-17 Thread ricardomarques
oops, *what you said :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065011#4065011

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065011
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: LinkageError

2007-07-17 Thread ricardomarques
Here's my definition:


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=  name=condition
  |swimlane name=default
  |   assignment expression=user(grover)/assignment
  |/swimlane
  |end-state name=fim/end-state
  |task-node name=which path
  |   task name=which path to follow swimlane=default
  |  controller
  | variable name=path access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=decision/transition
  |/task-node
  |start-state name=start
  |   transition name= to=which path/transition
  |/start-state
  |decision name=decision
  |   transition name=to right to=right
  |   condition expression=#{ path == 'right' } /
  |   /transition
  |   transition name=to left to=left
  | condition expression=#{ path == 'left' } /
  |   /transition
  |/decision
  |node name=left
  |   event type=node-enter
  |  action name=action1 class=actions.NotifyLeft/action
  |   /event
  |   transition name=from left to=end/transition
  |/node
  |node name=right
  |   event type=node-enter
  |  action name=action1 class=actions.NotifyRight/action
  |   /event
  |   transition name=from right to=end/transition
  |/node
  | /process-definition
  | 

When I come to task node and enter a value like right or left, I run a 
TaskInstanceEndCommand to end the task and continue, when I do that the 
considtino is evaluated and the correct node is called (which prints a line on 
the console), then the Linkage Error pops up.

Debugging the application the error is raised on node.leave()

I'm trying to get a bit more detail where the error is raised, so clues and 
hints are welcome meantime :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065094#4065094

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065094
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: conditional transition behavior

2007-07-16 Thread ricardomarques
here's some info from the log:


  | 11:02:38,218 DEBUG [Printer] listing entities:
  | 11:02:38,218 DEBUG [Printer] org.jbpm.graph.node.TaskNode{signal=4, 
events=[], action=null, leavingTransitions=[org.jbpm.graph.def.Transition#278], 
isAsyncExclusive=false, superState=null, tasks=uninitialized, 
createTasks=true, id=288, 
processDefinition=org.jbpm.graph.def.ProcessDefinition#81, isAsync=false, 
endTasks=false, description=null, exceptionHandlers=uninitialized, 
name=confinuar, arrivingTransitions=uninitialized}
  | 11:02:38,718 DEBUG [Printer] 
org.jbpm.graph.def.ProcessDefinition{startState=org.jbpm.graph.def.Node#291, 
events=[], definitions=uninitialized, actions=uninitialized, 
description=null, nodes=uninitialized, exceptionHandlers=uninitialized, 
isTerminationImplicit=false, name=notificacao, id=81, version=25}
  | 11:02:38,718 DEBUG [Printer] 
org.jbpm.taskmgmt.exe.TaskMgmtInstance{processInstance=org.jbpm.graph.exe.ProcessInstance#370,
 taskMgmtDefinition=org.jbpm.taskmgmt.def.TaskMgmtDefinition#201, 
taskInstances=[org.jbpm.taskmgmt.exe.TaskInstance#353, 
org.jbpm.taskmgmt.exe.TaskInstance#354], swimlaneInstances=uninitialized, 
id=605, version=1}
  | 11:02:39,218 DEBUG [Printer] 
org.jbpm.context.def.VariableAccess{access=read,write,required, 
mappedName=null, variableName=decisao, id=306}
  | 11:02:39,218 DEBUG [Printer] 
org.jbpm.graph.def.Transition{to=org.jbpm.graph.def.Node#292, events=[], 
description=null, from=org.jbpm.graph.def.Node#288, 
exceptionHandlers=uninitialized, condition=null, name=, id=278, 
processDefinition=org.jbpm.graph.def.ProcessDefinition#81}
  | 11:02:39,218 DEBUG [Printer] org.jbpm.graph.node.Decision{events=[], 
action=null, leavingTransitions=[org.jbpm.graph.def.Transition#281, 
org.jbpm.graph.def.Transition#282], isAsyncExclusive=false, superState=null, 
decisionConditions=[], id=292, 
processDefinition=org.jbpm.graph.def.ProcessDefinition#81, isAsync=false, 
description=null, decisionDelegation=null, decisionExpression=null, 
exceptionHandlers=uninitialized, name=decisao, 
arrivingTransitions=uninitialized}
  | 11:02:39,718 DEBUG [Printer] org.jbpm.graph.exe.ProcessInstance{key=null, 
start=2007-07-16 10:44:11, instances=[org.jbpm.module.exe.ModuleInstance#605, 
org.jbpm.module.exe.ModuleInstance#606], runtimeActions=[], isSuspended=false, 
end=2007-07-16 11:02:20, superProcessToken=null, 
rootToken=org.jbpm.graph.exe.Token#370, id=370, 
processDefinition=org.jbpm.graph.def.ProcessDefinition#81, version=1}
  | 11:02:39,718 DEBUG [Printer] 
org.jbpm.graph.def.Transition{to=org.jbpm.graph.def.Node#289, events=[], 
description=null, from=org.jbpm.graph.def.Node#292, 
exceptionHandlers=uninitialized, condition=#{ decisao == 'nao' }, name=fim, 
id=282, processDefinition=org.jbpm.graph.def.ProcessDefinition#81}
  | 11:02:40,218 DEBUG [Printer] 
org.jbpm.taskmgmt.exe.TaskInstance{comments=uninitialized, 
processInstance=org.jbpm.graph.exe.ProcessInstance#370, isBlocking=false, 
start=null, variableInstances=[org.jbpm.context.exe.VariableInstance#1074], 
taskMgmtInstance=org.jbpm.taskmgmt.exe.TaskMgmtInstance#605, isSuspended=false, 
isOpen=false, end=2007-07-16 11:01:46, 
swimlaneInstance=org.jbpm.taskmgmt.exe.SwimlaneInstance#217, dueDate=null, 
token=org.jbpm.graph.exe.Token#370, pooledActors=uninitialized, id=354, 
version=1, actorId=grover, isSignalling=false, create=2007-07-16 10:56:57, 
description=null, isCancelled=false, task=org.jbpm.taskmgmt.def.Task#125, 
name=deseja continuar, priority=3}
  | 11:02:40,718 DEBUG [Printer] org.jbpm.graph.node.EndState{events=[], 
action=null, leavingTransitions=uninitialized, isAsyncExclusive=false, 
superState=null, id=289, 
processDefinition=org.jbpm.graph.def.ProcessDefinition#81, isAsync=false, 
description=null, endCompleteProcess=null, exceptionHandlers=uninitialized, 
name=end, arrivingTransitions=uninitialized}
  | 11:02:40,718 DEBUG [Printer] 
org.jbpm.context.exe.variableinstance.StringInstance{processInstance=org.jbpm.graph.exe.ProcessInstance#370,
 value=rtyrty, tokenVariableMap=org.jbpm.context.exe.TokenVariableMap#155, 
converter=null, token=org.jbpm.graph.exe.Token#370, name=tipo, id=1073, 
version=0}
  | 11:02:41,218 DEBUG [Printer] 
org.jbpm.taskmgmt.def.TaskMgmtDefinition{swimlanes=uninitialized, 
startTask=null, tasks=uninitialized, 
name=org.jbpm.taskmgmt.def.TaskMgmtDefinition, id=201, 
processDefinition=org.jbpm.graph.def.ProcessDefinition#81}
  | 11:02:41,218 DEBUG [Printer] 
org.jbpm.taskmgmt.exe.TaskInstance{comments=uninitialized, 
processInstance=org.jbpm.graph.exe.ProcessInstance#370, isBlocking=false, 
start=null, variableInstances=uninitialized, 
taskMgmtInstance=org.jbpm.taskmgmt.exe.TaskMgmtInstance#605, isSuspended=false, 
isOpen=false, end=2007-07-16 10:56:42, 
swimlaneInstance=org.jbpm.taskmgmt.exe.SwimlaneInstance#217, dueDate=null, 
token=org.jbpm.graph.exe.Token#370, pooledActors=uninitialized, id=353, 
version=2, actorId=grover, isSignalling=false, create=2007-07-16 10:44:38, 

[jboss-user] [JBoss jBPM] - Re: conditional transition behavior

2007-07-16 Thread ricardomarques
an update:

kukeltje, i don't think that the problem comes from bug jbpm-443, since the 
fields as bit have values, on the bug description is says that the fiekds had 
an empty string not the case here.

Another thing on the database, jbpm_decisionconditions is empty, and on 
jbpm_node the record that matches the decision node has all the fields empty 
except id, class, name, description, processdefinition, nodecollectionindex, 
isasync and isasyncexcl, don't know if that's usual.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064489#4064489

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064489
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - LinkageError

2007-07-16 Thread ricardomarques
Hi guys I'm having this JVM error when trying to execute a 
TaskInstanceEndCommand.

Here's the trace:


  | 
  | 17:44:10,781 ERROR [STDERR] java.lang.LinkageError: loader constraints 
violated when linking javax/transaction/Synchronization class
  | 17:44:10,781 ERROR [STDERR] at 
org.jbpm.db.JobSession.deleteJobsForProcessInstance(JobSession.java:208)
  | 17:44:10,781 ERROR [STDERR] at 
org.jbpm.scheduler.db.DbSchedulerService.deleteTimersByProcessInstance(DbSchedulerService.java:54)
  | 17:44:10,781 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:329)
  | 17:44:11,203 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 17:44:11,203 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 17:44:11,203 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 17:44:11,203 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 17:44:11,203 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 17:44:11,203 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$3d4a95fa.end(generated)
  | 17:44:11,203 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.notifyParentOfTokenEnd(Token.java:331)
  | 17:44:11,203 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.end(Token.java:303)
  | 17:44:11,203 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.end(Token.java:253)
  | 17:44:11,203 ERROR [STDERR] at 
org.jbpm.graph.node.EndState.execute(EndState.java:59)
  | 17:44:11,703 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 17:44:11,703 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 17:44:11,703 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 17:44:11,718 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 17:44:11,718 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 17:44:11,718 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 17:44:12,203 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$13ccf9bb.enter(generated)
  | 17:44:12,203 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 17:44:12,203 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 17:44:12,203 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:357)
  | 17:44:12,218 ERROR [STDERR] at 
org.jbpm.graph.def.Node.execute(Node.java:349)
  | 17:44:12,218 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 17:44:12,218 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 17:44:12,218 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 17:44:12,218 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 17:44:12,218 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 17:44:12,718 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 17:44:12,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$13ccf9bb.enter(generated)
  | 17:44:12,718 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 17:44:12,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 17:44:12,718 ERROR [STDERR] at 
org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:136)
  | 17:44:12,718 ERROR [STDERR] at 
org.jbpm.graph.node.Decision.execute(Decision.java:152)
  | 17:44:12,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 17:44:12,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 17:44:12,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 17:44:12,718 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 17:44:12,718 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 17:44:12,718 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 17:44:12,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$13ccf9bb.enter(generated)
  | 17:44:12,718 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 17:44:12,718 ERROR [STDERR] at 

[jboss-user] [JBoss jBPM] - Re: conditional transition behavior

2007-07-13 Thread ricardomarques
Ok this is getting a weird behavior.

If u use decision node like this:


  | decision name=decisao
  |transition name=repetir to=decidir o destinatario
  | #{ contextInstance.variables.decisao == 'sim' }
  |   /transition
  |   transition name=fim to=end
  | #{ contextInstance.variables.decisao == 'nao' }
  |   /transition
  |/decision
  | 

It follow always the transition repetir

I tried to change the order to see if the problem continues, the definition 
stays like this:


  | decision name=decisao
  |   transition name=fim to=end
  | #{ contextInstance.variables.decisao == 'nao' }
  |   /transition   
  |   transition name=repetir to=decidir o destinatario
  | #{ contextInstance.variables.decisao == 'sim' }
  |   /transition
  | /decision
  | 

And on this case whatever the value of decisao the application breaks with a 
linkage error.

Any idea?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063935#4063935

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063935
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: conditional transition behavior

2007-07-13 Thread ricardomarques
Ok, so I will try this behavior with a decision node. 

Guarded transitions, don't know the concept, could u explain please? don't find 
 relevant information on that, even on the docs.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063889#4063889

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063889
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: conditional transition behavior

2007-07-13 Thread ricardomarques
Ok, following your advice and looking at ruleFlow example, I change my 
definition to:


  | decision name=decisao
  |transition name=repetir to=decidir o destinatario
  | condition expression=#{ decisao == 'sim' } /
  |   /transition
  |   transition name=fim to=end
  | condition expression=#{ decisao == 'nao' } /
  |   /transition
  |/decision
  | 

Still the problem continues, I also looked at 
http://www.jboss.com/index.html?module=bbop=viewtopict=111763postdays=0postorder=ascstart=10

and because of that, I upgraded to jbpm 3.2.1, and still whatever the choice I 
make I always go the repetir transition.

now i'm running jbpm 3.2.1 + jboss 4.0.5 + mysql 5 + jdk 1.5

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064066#4064066

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064066
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - upgrade 3.2 - 3.2.1 process definition problem

2007-07-13 Thread ricardomarques
Hi guys, i recently had upgrade jbpm, but there is a problem on listing process 
definitions.

I had this piece of code working:

Command cmd = new GetProcessDefinitionCommand(true);
  | DataModel model = null;
  | 
  | try {
  | List l = (List)getEngine().execute(cmd);
  | model = new ListDataModel(l);
  | }
  | catch (Exception ex) {
  | ex.printStackTrace();
  | }
  | finally{
  | return model;
  | }
  | 

and after the update, there is no class GetProcessDefinitionCommand, only 
GetProcessDefinitionsCommand. So I changed, and I get a lot of these exceptions 
while listing:

17:11:50,468 WARN  [AbstractGetObjectBaseCommand] exception while retrieving 
process instance data for process definiton novo teste
  | java.lang.NullPointerException
  | at 
org.jbpm.command.AbstractGetObjectBaseCommand.retrieveProcessDefinition(AbstractGetObjectBaseCommand.java:90)
  | at 
org.jbpm.command.GetProcessDefinitionsCommand.execute(GetProcessDefinitionsCommand.java:39)
  | at 
com.pep.workflow.console.beans.JBPMEngine.execute(JBPMEngine.java:130)
  | at 
com.pep.workflow.console.beans.Process.getLatestProcessDefinitions(Process.java:185)
  | at 
com.pep.workflow.console.beans.Process.getProcessDefinitions(Process.java:130)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)
  | at 
org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
  | at 
org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
  | at 
org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
  | at javax.faces.component.UIData.getValue(UIData.java:1019)
  | at 
org.apache.myfaces.component.html.ext.HtmlDataTableHack.createDataModel(HtmlDataTableHack.java:437)
  | at 
org.apache.myfaces.component.html.ext.HtmlDataTable.createDataModel(HtmlDataTable.java:847)
  | at 
org.apache.myfaces.component.html.ext.HtmlDataTableHack.getDataModel(HtmlDataTableHack.java:414)
  | at 
org.apache.myfaces.component.html.ext.HtmlDataTable.getDataModel(HtmlDataTable.java:839)
  | at 
org.apache.myfaces.component.html.ext.HtmlDataTableHack.getRowCount(HtmlDataTableHack.java:87)
  | at 
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:221)
  | at 
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:134)
  | at 
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:187)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
  | at 
javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:480)
  | at 
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:361)
  | at 
org.apache.myfaces.shared_tomahawk.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:57)
  | at 
org.apache.jsp.pages.process.definitions_jsp._jspx_meth_t_dataTable_0(definitions_jsp.java:655)
  | at 
org.apache.jsp.pages.process.definitions_jsp._jspx_meth_h_form_0(definitions_jsp.java:221)
  | at 
org.apache.jsp.pages.process.definitions_jsp._jspService(definitions_jsp.java:140)
  | at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
  | 
  | at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
  | at 

[jboss-user] [JBoss jBPM] - Re: conditional transition behavior

2007-07-13 Thread ricardomarques
kukeltje wrote : http://jira.jboss.com/jira/browse/JBPM-443 ?

It's possible, but I replaced the BIT by TINYINT and the behavior is the same.

An update, if I choose nao on the first loop (yes, the process definition has 
a lopp) it triggers a Linkage Error, if on a later loop just simply doesn't 
evaluate.

Here's the error:


  | 18:05:12,687 ERROR [STDERR] java.lang.LinkageError: loader constraints 
violated when linking javax/transaction/Synchronization class
  | 18:05:12,687 ERROR [STDERR] at 
org.jbpm.db.JobSession.deleteJobsForProcessInstance(JobSession.java:208)
  | 18:05:12,687 ERROR [STDERR] at 
org.jbpm.scheduler.db.DbSchedulerService.deleteTimersByProcessInstance(DbSchedulerService.java:54)
  | 18:05:12,718 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:329)
  | 18:05:12,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 18:05:12,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 18:05:12,718 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 18:05:12,718 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 18:05:12,718 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 18:05:12,718 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$fd259333.end(generated)
  | 18:05:12,718 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.notifyParentOfTokenEnd(Token.java:331)
  | 18:05:12,718 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.end(Token.java:303)
  | 18:05:12,718 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.end(Token.java:253)
  | 18:05:12,718 ERROR [STDERR] at 
org.jbpm.graph.node.EndState.execute(EndState.java:59)
  | 18:05:12,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 18:05:12,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 18:05:12,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 18:05:12,718 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 18:05:12,718 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 18:05:12,718 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 18:05:12,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3a7f6f4.enter(generated)
  | 18:05:13,218 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 18:05:13,218 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 18:05:13,218 ERROR [STDERR] at 
org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:136)
  | 18:05:13,218 ERROR [STDERR] at 
org.jbpm.graph.node.Decision.execute(Decision.java:152)
  | 18:05:13,218 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 18:05:13,218 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 18:05:13,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 18:05:13,718 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 18:05:13,718 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 18:05:13,718 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 18:05:13,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3a7f6f4.enter(generated)
  | 18:05:13,718 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 18:05:13,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 18:05:13,718 ERROR [STDERR] at 
org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
  | 18:05:13,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 18:05:13,718 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 18:05:13,718 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 18:05:13,718 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 18:05:13,718 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 18:05:13,718 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3a7f6f4.leave(generated)
  | 18:05:13,718 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.signal(Token.java:194)
  | 18:05:13,718 ERROR 

[jboss-user] [JBoss jBPM] - Re: LinkageError

2007-07-12 Thread ricardomarques
Environment: jbpm 3.2 + mysql 5 + jboss as 4.0.5 + jdk 1.5.x


This is happening after the the action of this process been run, when I execute 
TaskInstanceEndCommand, and untill now this happens only on this process.



  | 
  | StartWorkOnTaskCommand cmd1 = new StartWorkOnTaskCommand(taskInstanceId, 
false);
  | TaskInstanceEndCommand cmd2 = new TaskInstanceEndCommand();
  | 
  | cmd2.setVariables(map);
  | cmd2.setTaskInstanceId(taskInstanceId);
  | 
  | execute ()
  | 



  | process-definition
  |   xmlns=  name=notificacao
  |swimlane name=default
  |   assignment expression=user(grover)/assignment
  |/swimlane
  |node name=envia email
  |   event type=node-enter
  |  action name=sendmail class=com.pep.actions.SendMail/action
  |   /event
  |   transition name= to=confinuar/transition
  |/node
  |task-node name=confinuar
  |   transition name=t end to=end/transition
  |   transition name=repetir to=decidir o destinatario/transition
  |/task-node
  |end-state name=end/end-state
  |task-node name=decidir o destinatario
  |   task name=inserir destinatario swimlane=default
  |  controller
  | variable name=destinatario 
access=read,write,required/variable
  | variable name=tipo access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=envia email/transition
  |/task-node
  |start-state name=start
  |   transition name= to=decidir o destinatario/transition
  |/start-state
  | /process-definition
  | 

the action com.pep.actions.SendMail, simply outputs hello world, until this 
part everything works, after this it gives the error that i mentioned.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063396#4063396

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063396
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: LinkageError

2007-07-12 Thread ricardomarques
apparently when i add a task to confinuar the problem vanish, still the error 
that jbpm gives in the absence of task's is a bit odd.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063421#4063421

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063421
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - conditional transition behavior

2007-07-12 Thread ricardomarques
hi guys

here's my problem:


  |task-node name=confinuar
  |   task name=deseja continuar swimlane=default
  |  controller
  | variable name=decisao 
access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name=t end to=end
  | condition#{ contextInstance.variables.decisao == 'sim' 
}/condition  
  |   /transition
  |   transition name=repetir to=decidir o destinatario
  | condition#{ contextInstance.variables.decisao != 'sim' 
}/condition 
  |   /transition
  |/task-node
  | 

While running the task instance i only get repetir on transitions list. 
Shouldn't I get a empty list to signal and then jbpm evaluates the transition? 
Or is something wrong with my conditions that could afect something?

btw currently according some post i read, conditions support both beanshell and 
EL, but which is adviceable to use, since beanshell i guess it's more complete 
it should be used, but the greater part from the posts I read are EL.



thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063589#4063589

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063589
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - LinkageError

2007-07-11 Thread ricardomarques
Hi 

I'm getting this throw when running a TaskInstanceEndCommand, and i get no idea 
why this is happening or what it means.

Appreciate any feedback on this!


  | 16:13:47,593 INFO  [STDOUT] THROW: java.lang.LinkageError: loader 
constraints violated when linking javax/transaction/Synchronization class
  | 16:13:47,593 ERROR [STDERR] java.lang.LinkageError: loader constraints 
violated when linking javax/transaction/Synchronization class
  | 16:13:47,593 ERROR [STDERR] at 
org.jbpm.db.JobSession.deleteJobsForProcessInstance(JobSession.java:208)
  | 16:13:47,625 ERROR [STDERR] at 
org.jbpm.scheduler.db.DbSchedulerService.deleteTimersByProcessInstance(DbSchedulerService.java:54)
  | 16:13:47,625 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:310)
  | 16:13:47,625 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 16:13:47,625 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 16:13:47,625 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 16:13:47,625 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 16:13:47,625 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 16:13:47,625 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$1e59025c.end(generated)
  | 16:13:47,625 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.notifyParentOfTokenEnd(Token.java:320)
  | 16:13:47,625 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.end(Token.java:292)
  | 16:13:47,625 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.end(Token.java:242)
  | 16:13:48,125 ERROR [STDERR] at 
org.jbpm.graph.node.EndState.execute(EndState.java:59)
  | 16:13:48,125 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 16:13:48,125 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 16:13:48,125 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 16:13:48,125 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 16:13:48,125 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 16:13:48,125 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 16:13:48,625 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$f4db661d.enter(generated)
  | 16:13:48,625 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 16:13:48,625 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 16:13:48,625 ERROR [STDERR] at 
org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
  | 16:13:48,625 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:357)
  | 16:13:48,625 ERROR [STDERR] at 
org.jbpm.graph.node.TaskNode.execute(TaskNode.java:190)
  | 16:13:48,625 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 16:13:48,625 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 16:13:48,625 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 16:13:49,125 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 16:13:49,125 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 16:13:49,125 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 16:13:49,125 ERROR [STDERR] at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$f4db661d.enter(generated)
  | 16:13:49,125 ERROR [STDERR] at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 16:13:49,625 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 16:13:49,625 ERROR [STDERR] at 
org.jbpm.graph.def.Node.leave(Node.java:357)
  | 16:13:49,625 ERROR [STDERR] at 
org.jbpm.graph.def.Node.execute(Node.java:349)
  | 16:13:49,625 ERROR [STDERR] at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 16:13:49,625 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 16:13:49,625 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 16:13:49,625 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 16:13:49,625 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 16:13:50,125 ERROR [STDERR] at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  | 

[jboss-user] [JBoss jBPM] - Re: start-state

2007-07-10 Thread ricardomarques
vtysh wrote : You can use NewProcessInstanceCommand with createStartTask as 
true, if returned value will be null then you will know, that process doesn't 
contain a start task. Then you can use SignalCommand or some other one to move 
process from start state to first task node.

i have take your idea and my my own Command based on NewProcessInstanceCommand 
to do this, this part is working now.


thanks for the feedback

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062508#4062508

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062508
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - start-state

2007-07-09 Thread ricardomarques
Hi guys, i'm having a problem with start-states, i had looked at the docs but 
still i'm a bit confused.

I tried to run this process, and i got nothing on user task list. when I 
removed the start-state (because I had read somewhere that wasn't mandatory), 
and still i hadn't nothing on the tasklist.

Is start-state mandatory?

Then I tried to keep start-state but with a task, and then it appears, but the 
user must set it as done, not quite the behavior that I was expecting.

For my purpuse, state-state would be just a model representation, the first 
task on my user task list should be inserir destinatario.

But on jbpm examples, there's examples where exist start-states without task.

I just wanna define a representative start state, where I don't put any action, 
and he just transitate to the next one.

My process definition:


  | ...
  |swimlane name=default
  |   assignment expression=user(grover)/assignment
  | ...
  |task-node name=decidir o destinatario
  |   task name=inserir destinatario swimlane=default
  |  controller
  | variable name=destinatario 
access=read,write,required/variable
  | variable name=tipo access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name=t erro to=Escreve erro na consola
  | conditiontipo != 'mail'/condition
  |   /transition
  |   transition name=t mail to=envia email
  | conditiontipo== 'mail'/condition
  |   /transition
  |/task-node
  |start-state name=start
  |   transition name=t start to=decidir o destinatario/transition
  |/start-state
  | ...
  | 

I'm creating the instance with:


  | cmd = new NewProcessInstanceCommand();
  | cmd.setProcessId(Long.parseLong(pid));
  | cmd.setActorId(getUser().getName());
  | cmd.setCreateStartTask(true);
  | 


Could anyone clarify a bit this issue.

Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061922#4061922

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061922
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: group list

2007-07-06 Thread ricardomarques
ok, thanks for your reply i guess i will digg up a bit hibernate to lear to do 
that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061264#4061264

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061264
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process instance and groups

2007-07-06 Thread ricardomarques
OK it works now, but still i don't wanna define memberships to all my users, so 
for the behavior that i want, what's the best aproach?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061312#4061312

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061312
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process instance and groups

2007-07-04 Thread ricardomarques
Don't have sure that's the correct scenario, but the one who creates an 
instance could be different from the one who works on it.

If there is a jdl feature for this on process design it should be available on 
the engine level.

Or not..


syngolis, can u later post here the url for the jira issue please, i want to 
follow that :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060302#4060302

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060302
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - group list

2007-07-04 Thread ricardomarques
Hi 

Is there any way to get a group list? i had check the identity session, the 
methods are only to retrieve a group by a given name. I want to get a list of 
them. Must i write a hibernate query for this?


thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060362#4060362

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060362
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problem with Deployment (FileUploadException)

2007-07-04 Thread ricardomarques
have u tried to use the latest eclipse and GPD version? eclipse 2 is too old.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060486#4060486

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060486
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process instance and groups

2007-07-04 Thread ricardomarques
btw continuing a bit my saga. The same process, now the full version:


  | start-state name=enter request
  |   task name=request entry
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |  assignment expression=group(users)/assignment
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  |end-state name=end/end-state
  |task-node name=evaluate request
  |   task name=entry evaluation
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info access=read/variable
  | variable name=decision/variable
  |  /controller
  |  assignment expression=group(users)/assignment
  |   /task
  |   transition name=More info needed to=give addition 
info/transition
  |   transition name=approve/disapprove to=end/transition
  |/task-node
  |task-node name=give addition info
  |   task name=additional info entry
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info/variable
  |  /controller
  |  assignment expression=group(users)/assignment
  |   /task
  |   transition name= to=evaluate request/transition
  |/task-node
  | 

After I do the work on start task, i move on to another node (task), that node 
is assign to a group, still i don't get the not either on the user task list or 
the group task list.

I'm getting the group task list like this:


  | ArrayList list = new ArrayList();
  | list.add(this.username);
  | 
  | return jbpmContext.getGroupTaskList(list);
  | 

thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060497#4060497

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060497
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process instance and groups

2007-07-04 Thread ricardomarques
I get an error trying to do that: org.jbpm.graph.def.DelegationException: 
couldn't resolve assignment expression 'group(users)-member(team leader)'

PS: i'm looking at the database, there is no another group users.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060528#4060528

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060528
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problems with running the websale example

2007-07-04 Thread ricardomarques
Unsupported major.minor version 49.0

This reminds me different JVM versions errors.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060535#4060535

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060535
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - process instance and groups

2007-07-03 Thread ricardomarques
Hi guys

Continuing a bit the problem in this topic: 
http://www.jboss.com/index.html?module=bbop=viewtopict=73247
 but not quite.

i have this process definition piece:


  | start-state name=enter request
  |   task name=request entry
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |  assignment expression=group(users)/assignment
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  | 

and this instanciation code:


  | cmd = new NewProcessInstanceCommand();
  | cmd.setProcessId(Long.parseLong(pid));
  | cmd.setActorId(userName);
  | cmd.setCreateStartTask(true);
  | 
  | getEngine().execute(cmd);
  | 

both user grover and ernie belong to users

if I log as grover or ernie and initiate a process instance, the first task 
goes to that user tasklist.

The behavior that i was expecting was that, that task instance appears on group 
users task list.

I'm creating the instance the right way, or for that behavior something must 
change?

any feedback would be usefull :)

thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060061#4060061

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060061
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Assigning a task to-{group, rolebased, ...}

2007-07-02 Thread ricardomarques
I'm having a similar problem, but i'm using the expressions directly:


  | start-state name=enter request
  |   task name=request entry
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |  assignment expression=group(users)/assignment
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  | 

Group users, has 2 users: grover and ernie

I start the instance with ernie, and the task appears on ernie tasklist and not 
in the group.


  | cmd = new NewProcessInstanceCommand();
  | cmd.setProcessId(Long.parseLong(pid));
  | //cmd.setActorId(userName);
  | cmd.setCreateStartTask(true);
  | 
  | execute(cmd);
  | 

In this case, have tried to comment \ uncomment the actorid and the 
createstarttask and the behavior is the same.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059629#4059629

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059629
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - process upload with tomahawk

2007-06-27 Thread ricardomarques
Hi 

i'm try to upload a process to the jbpm engine, using file upload from tomahawk 
 library, but i having this exception:


  | 
  | Caused by: org.jbpm.JbpmException: process definition does not have a name
  | at 
org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:80)
  | at 
org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
  | at 
com.pep.workflow.server.command.DeployProcessCommand.execute(DeployProcessCommand.java:30)
  | at 
com.pep.workflow.server.beans.command.CommandService.execute(CommandService.java:64)
  | ... 55 more
  | 
  | 
  | 

I'm using this code to the deployment:


  | public Object execute(JbpmContext jbpmContext) throws Exception {
  | 
  | if (this.inputStream == null)
  | throw new NotSetWorkflowException(required attribute not 
set!);
  | 
  | ProcessDefinition pf = new ProcessDefinition();
  | pf.parseParZipInputStream(this.inputStream);
  | 
  | jbpmContext.deployProcessDefinition(pf);
  | 
  | return pf;
  | }
  | 
  | ...
  | 
  | InputStream zip = this.uploadedFile.getInputStream();
  | 
  | Command cmd = new DeployProcessCommand(zip);
  | Object result = execute(cmd);
  | 
  | ...
  | 

When I run the debugger I get the process definition without the properties 
set, after the parsing. 

Any idea?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058061#4058061

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058061
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process upload with tomahawk

2007-06-27 Thread ricardomarques
yes it does, i forgot to paste the definition:


  | 
  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=urn:jbpm.org:jpdl-3.1  name=holiday-request
  |swimlane name=initiator
  |   assignment expression=user(grover)/assignment
  |/swimlane
  |start-state name=enter request
  |   task name=request entry swimlane=initiator
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  |end-state name=end/end-state
  |task-node name=evaluate request
  |   task name=entry evaluation swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info access=read/variable
  | variable name=decision/variable
  |  /controller
  |   /task
  |   transition name=More info needed to=give addition 
info/transition
  |   transition name=approve/disapprove to=end/transition
  |/task-node
  |task-node name=give addition info
  |   task name=additional info entry swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/task-node
  | /process-definition
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058270#4058270

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058270
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - does not create the instance

2007-06-27 Thread ricardomarques
Hi i'm trying start a new process definition instance, but by something that i 
don't understand i can't. I get no output on deploy and on creating the new 
instance, i have'd checked the database, the instance isn't created.

The process definition:


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=urn:jbpm.org:jpdl-3.2  name=holiday request standart for ernie
  | 
  |start-state name=enter request
  |   task name=request entry
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |  assignment expression=user(ernie)/assignment
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  |end-state name=end/end-state
  |task-node name=evaluate request
  |   task name=entry evaluation
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info access=read/variable
  | variable name=decision/variable
  |  /controller
  |  assignment expression=user(ernie)/assignment
  |   /task
  |   transition name=More info needed to=give addition 
info/transition
  |   transition name=approve/disapprove to=end/transition
  |/task-node
  |task-node name=give addition info
  |   task name=additional info entry
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info/variable
  |  /controller
  |  assignment expression=user(ernie)/assignment
  |   /task
  |   transition name= to=evaluate request/transition
  |/task-node
  | 
  | /process-definition
  | 

I'm creating the instance with:


  | cmd = new NewProcessInstanceCommand();
  | cmd.setProcessId(Long.parseLong(pid));
  | cmd.setActorId(userName);
  | cmd.setCreateStartTask(true);
  | 
  | getEjbClient().getCommandService().execute(cmd);
  | 

thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058285#4058285

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058285
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - setting user data

2007-06-25 Thread ricardomarques
Hi

I'm trying to set a user password, but for some reason. the data don't get 
saved. I'm wondering if i'm using this the correct way. Here's my code:


  | public void changePassword(String name, String newPassword) {
  | 
  | User user = identitySession.getUserByName(name);
  | 
  | if (user != null) {
  | user.setPassword(newPassword);
  | 
  | identitySession.saveUser(user);
  | log.debug(password changed for  + name);
  | }
  | else {
  | log.error(no such user:  + name);
  | }
  | 
  | }
  | 

I've tried also without the saveUser() and the result is the same.

I'm opening and closing the session like this:


  |  public void openSession() {
  | this.jbpmContext = this.jbpmConfiguration.createJbpmContext();
  | this.identitySession = new 
IdentitySession(jbpmContext.getSession());
  | log.debug(session opened!);
  | }
  | 
  | public void closeSession() {
  | 
  | this.identitySession.close(); 
  | this.jbpmContext = null;
  | 
  | log.debug(session closed!);
  | }
  | 

Help?

I'm using jbpm 3.2 + jboss AS 4.0.5 + mysql 5

Thanks :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057399#4057399

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057399
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Could not passivate; failed to save state

2007-06-21 Thread ricardomarques
Hi guys

I'm using ejb with a web application on jboss 4.0.5 with jdk 1.5 and i'm 
getting this exception:


  | 11:53:50,390 WARN  [AbstractInstanceCache] failed to passivate, 
id=f373o8gy-s
  | javax.ejb.EJBException: Could not passivate; failed to save state
  | at 
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:423)
  | at 
org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:107)
  | at 
org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractInstanceCache.java:209)
  | at 
org.jboss.ejb.plugins.AbstractInstanceCache.tryToPassivate(AbstractInstanceCache.java:162)
  | at 
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy$OveragerTask.run(LRUEnterpriseContextCachePolicy.java:450)
  | at java.util.TimerThread.mainLoop(Timer.java:512)
  | at java.util.TimerThread.run(Timer.java:462)
  | Caused by: java.io.NotSerializableException: java.lang.ThreadLocal
  | at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
  | at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
  | at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
  | at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
  | at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
  | at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
  | at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
  | at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
  | at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
  | at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
  | at 
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:414)
  | ... 6 more
  |  



My code (Session bean statefull):


  | protected transient Log log;
  | private transient IdentitySession identitySession;
  |  
  | public void ejbPassivate() throws EJBException, RemoteException {
  | log.debug(bean passivating... );
  | log = null;
  | identitySession.close();
  | identitySession = null;
  | }
  | 



the attributes are transient because i had read somewhere that like that i 
could avoid serialization problems. but they remain, i've tried with and 
without them and the output is the same.

IdentitySession is a non-serializable object and Log is a interface from 
commons logging also non-serializable.

can anyone help?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4056598#4056598

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4056598
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - reassign users to a task instance

2007-06-20 Thread ricardomarques
Hi guys 

Given a task instance I'm trying to reassign that instance to another user, but 
when i do that all the task instance from that process instance stay assign to 
that user, instead of just of the one task instance that I specified. 

Where's the code and the process definition:

TaskInstance taskInstance = jbpmContext.getTaskInstance(this.taskInstanceId);
  | 
  | taskInstance.setActorId(username,true);


  | 
  | process-definition
  |   xmlns=urn:jbpm.org:jpdl-3.1  name=holiday-request
  |swimlane name=initiator
  |   assignment expression=user(grover)/assignment
  |/swimlane
  |start-state name=enter request
  |   task name=request entry swimlane=initiator
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  |end-state name=end/end-state
  |task-node name=evaluate request
  |   task name=entry evaluation swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info access=read/variable
  | variable name=decision/variable
  |  /controller
  |   /task
  |   transition name=More info needed to=give addition 
info/transition
  |   transition name=approve/disapprove to=end/transition
  |/task-node
  |task-node name=give addition info
  |   task name=additional info entry swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/task-node
  | /process-definition
  | 
  | 

help??

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4056135#4056135

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4056135
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.ClassCastException: org.hibernate.collection.P

2007-06-18 Thread ricardomarques
I'm using JBoss AS 4.0.5 and JBPM 3.2. The hibernate version, is the one that 
comes with JBoss AS.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4055115#4055115

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - LazyInitializationException

2007-06-18 Thread ricardomarques
Hi guys, while getting the comments for a task instance using the command 
interface, i'm having this exception:


  | 12:19:00,265 ERROR [LazyInitializationException] failed to lazily 
initialize a collection of role: org.jbpm.taskmgmt.exe.TaskInstance.comments, 
no session or session was closed
  | org.hibernate.LazyInitializationException: failed to lazily initialize a 
collection of role: org.jbpm.taskmgmt.exe.TaskInstance.comments, no session or 
session was closed
  | at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
  | at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
  | at 
org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97)
  | at 
org.hibernate.collection.PersistentList.size(PersistentList.java:91)
  | at com.pep.workflow.console.beans.Task.fetchComments(Task.java:189)
  | at com.pep.workflow.console.beans.Task.initialize(Task.java:240)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at javax.faces.component.UIData.broadcast(UIData.java:513)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | 
  | 

I've have read some other post's regarding this issue but still have some 
question, i'm complitely newbie in hibernate, and I trying to figure out the 
best way to solve this.

I'm wandering if the best approach is to write my hibernate query?


thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4055170#4055170

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055170
___

[jboss-user] [JBoss jBPM] - java.lang.ClassCastException: org.hibernate.collection.Persi

2007-06-15 Thread ricardomarques
Hi guys

I'm having this exception:


  | 15:22:17,093 ERROR [STDERR] java.lang.ClassCastException: 
org.hibernate.collection.PersistentList
  | 15:22:17,093 ERROR [STDERR] at 
com.pep.workflow.console.beans.Task.fetchComments(Task.java:188)
  | 15:22:17,093 ERROR [STDERR] at 
com.pep.workflow.console.beans.Task.initialize(Task.java:238)
  | 15:22:17,093 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 15:22:17,093 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 15:22:17,500 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 15:22:17,500 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | 15:22:17,500 ERROR [STDERR] at 
javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | 15:22:17,500 ERROR [STDERR] at 
javax.faces.component.UIData.broadcast(UIData.java:513)
  | 15:22:17,500 ERROR [STDERR] at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
  | 15:22:17,500 ERROR [STDERR] at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | 15:22:17,500 ERROR [STDERR] at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 15:22:17,500 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 15:22:17,500 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 15:22:17,500 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 15:22:17,500 ERROR [STDERR] at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 15:22:17,500 ERROR [STDERR] at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 15:22:17,500 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
  | 15:22:17,500 ERROR [Task] Error initializing task page: 
java.lang.ClassCastException: org.hibernate.collection.PersistentList
  | 

while executing this code using the command interface:


  | public Object execute(JbpmContext jbpmContext) throws Exception {
  | 
  | TaskInstance 

[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-14 Thread ricardomarques
roccolocko wrote : Although you do can make some validation of this variables 
with bean shell, I would recomend that you make the validations before you put 
them on jbpm, for example with Validator in case you are using JSF.

That's my ideia! But I need to have something at process design level that 
tells what can of validation I will apply to a variable.

I'm wondering on the process definition where would be the best place for that 
on the process definition.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054411#4054411

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054411
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Canceling an task instance

2007-06-12 Thread ricardomarques
For now... I had resolved the problem the following way (not sure that's the 
correct one), until now I get a task from the task list then start the work on 
the task and when the user had filled up the form i ended the task. This was 
giving me problems on canceling (if doing nothing), because on the moment that 
I start the work on the task using this code:


  | Command cmd = new StartWorkOnTaskCommand(getTid(), false);
  | Object result = getEjbClient().getCommandService().execute(cmd);
  | 

When i retrive the task list using:


  | try {
  | cmd = new GetTaskListCommand(name,true);
  | List result = (List) 
getEjbClient().getCommandService().execute(cmd);
  | 
  | DataModel data = new ListDataModel(result);
  | return data;
  | }
  | 

I haven't the task on the tasklist (visible at least).

I had resolved the problem by starting the work and ending the work when user 
submit's the form. Probally i'm going to optimize this to make only one call to 
the ejb.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053411#4053411

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053411
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Canceling an task instance

2007-06-12 Thread ricardomarques
Ok, thanks for the feedback.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053445#4053445

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053445
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Validating user input

2007-06-12 Thread ricardomarques
Hi

From what i have get until now, please correct me if I am wrong, at process 
design level, we can't declare variable types, only string variables, so... in 
some cases those strings must be cast\converter to other formats on the java 
code (actions).

So... is there some way to specify the kind of validation that a variable must 
suffer at user input level? I assume that's nothing out of the box to this, and 
I trying to figure out the best\simple way to do this.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053557#4053557

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053557
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Validating user input

2007-06-12 Thread ricardomarques
So using bean shell script on process definition is the best way to do it? On 
that case the validation is on the script, and i wanted at the user level. 

I was thinking on defining a regular expression on jpdl that I could access 
throut the API, and validate on user level, don't know if it is the best 
approach.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053653#4053653

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053653
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Canceling an task instance

2007-06-11 Thread ricardomarques
Hi Guys

I want to cancel a task without ending it. But from the code on 
TaskInstance.java I can't see how can I do that out of the box.

What I need to do is: a user start's a work on a task but then cancel's it, and 
the task doesn't signal and return's do the user tasklist.


Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053016#4053016

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053016
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Canceling an task instance

2007-06-11 Thread ricardomarques
yes, but if I cancel it from the API, the task instance is terminated and it 
moves to the next node. I want that it stays in the same node, where the cancel 
action was called.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053065#4053065

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053065
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Canceling an task instance

2007-06-11 Thread ricardomarques
Sorry I haven't get that. But doing so... I get the task instance out of the 
tasklist, i think that is because i'm starting the work on the task, and leave 
it open.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053101#4053101

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053101
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Canceling an task instance

2007-06-11 Thread ricardomarques
Probally my english wasn't clear, let me try again.


If I do nothing, the task doesn't continue, but also doesn't appear on my 
tasklist, do i need to suspend or resume ? Or those methods aren't fit to that?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053108#4053108

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053108
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process behavior

2007-06-05 Thread ricardomarques
Ronald, thanks for your answer...

kukeltje wrote : you probably meant to say: I guess that it should NOT give 
me this results, because i'm not on the node evaluate request (i guess).
  | 

Yup you are right :)

kukeltje wrote : 
  | Well, don't guess, be sure... turn up the log level to debug (log4j), see 
what happens report back with your own analysis of the log, not just post 
the log itself without that.

Well, I'm still begining in jbpm so... my interpretation of the logs doesn't 
tell me much, yet on the database, the task instance for my current process 
instance is pointig to entry evaluation that means his bypass the first node.

About my code:

I'm using this code to start a instance and get it on my task lisk:


  | cmd = new StartProcessInstanceCommand();
  |
  | cmd.setProcessId(Long.parseLong(pid));
  | cmd.setActorId(userName);
  | 
  | getCommandService().execute(cmd);
  | 

To start a work on a task I use:

Command cmd = new StartWorkOnTaskCommand(this.getTid(), false);

where this.tid, is the task instance id, and then to get the transitions:

this.availableTransitions = new ArrayListTransition();
  |   Iterator iter = tl.iterator();
  |   while (iter.hasNext()) {
  | Transition transition = (Transition) iter.next();
  | 
  | availableTransitions.add(transition);
  |   }

I agree with you Ronald when u say that is a basic error, but we get lots of 
those when we are learning.

Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051262#4051262

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051262
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Getting a list of the process variables in a process ins

2007-06-04 Thread ricardomarques
I have discovered an working example on taskbean.java on jbpm 3.1 starters kit 
(web console). With that code it work's fine.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050896#4050896

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050896
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - process behavior

2007-06-04 Thread ricardomarques
Hi 

I have this process definition:


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=urn:jbpm.org:jpdl-3.1  name=holiday-request
  |swimlane name=initiator
  |   assignment expression=user(grover)/assignment
  |/swimlane
  |start-state name=enter request
  |   task name=request entry swimlane=initiator
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  |end-state name=end/end-state
  |task-node name=evaluate request
  |   task name=entry evaluation swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info access=read/variable
  | variable name=decision/variable
  |  /controller
  |   /task
  |   transition name=More info needed to=give addition 
info/transition
  |   transition name=approve/disapprove to=end/transition
  |/task-node
  |task-node name=give addition info
  |   task name=additional info entry swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/task-node
  | /process-definition
  | 
  | And... when I start a work on a instance and retrive the variables and 
transitions, I get 4 vars: start date, duration,info and decision. And on the 
transitions I get 2 transitions More info needed and approve/disapprove.
  | 
  | I guess that it should give me this results, because i'm not on the node 
evaluate request (i guess).
  | 
  | Is the behavior ok? I'm doing somethig wrong?
  | 
  | Thanks in advance.
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051035#4051035

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051035
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - jboss portal and mysql

2007-06-04 Thread ricardomarques
Hi all

I'm trying to use jboss portal 2.2 + jboss AS 4.0.5 + mysql 5, i have followed 
the instrutions but when i deploy the portal i get errors onj first deploying 
saying some table problems (can't reproduce right, i will paste here tomorrow 
if need).

And also i get these on management block:


  | 
  | /WEB-INF/jsp/management/index.xhtml @41,58 rendered=#{!empty 
node.children}: Exception getting value of property children of base of type : 
org.jboss.portal.core.portlet.management.LazyPortalObjectTreeNode
  | 

Does is some problem with mysql databases?

help?


thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051085#4051085

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051085
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Getting a list of the process variables in a process ins

2007-06-01 Thread ricardomarques
I get a null value on that value, is there some obvious reason on that may 
happend ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050434#4050434

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050434
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - acessing jboss logs

2007-05-31 Thread ricardomarques
Hi

I don't know if this forum is the right place for this, sorry for that, but i'm 
developing an JSF applicaton, and I want to access the jboss logging services, 
any hind how can i do that?


thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050177#4050177

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050177
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Getting variables instances

2007-05-31 Thread ricardomarques
hello

I'm having some trouble accessing process variables to user input. 

I'm retrieving the information remotly width:


  | Command cmd = new GetTaskInstanceCommand(tid);
  | Object result = getEjbClient().getCommandService().execute(cmd);
  | this.taskInstance = (TaskInstance) result;
  | 

When I debug my application and check the Map that contains the variables  is 
null. And on the database for this task instance the variables are on the table.

I don't know if this way is the rigth way to go, so... any help on this would 
be appreciated

I'm using the holiday request for this, the definition follows:


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=urn:jbpm.org:jpdl-3.1  name=holiday-request
  |swimlane name=initiator
  |   assignment expression=user(grover)/assignment
  |/swimlane
  |start-state name=enter request
  |   task name=request entry swimlane=initiator
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  |end-state name=end/end-state
  |task-node name=evaluate request
  |   task name=entry evaluation swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info access=read/variable
  | variable name=decision/variable
  |  /controller
  |   /task
  |   transition name=More info needed to=give addition 
info/transition
  |   transition name=approve/disapprove to=end/transition
  |/task-node
  |task-node name=give addition info
  |   task name=additional info entry swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/task-node
  | /process-definition


PS: Sorry the bad english.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050198#4050198

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050198
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Getting variables instances

2007-05-31 Thread ricardomarques
BTW i turn the debug and I get this:


  | 17:30:57,484 DEBUG [AbstractFlushingEventListener] Flushing entities and 
processing referenced collections
  | 17:30:57,484 DEBUG [Collections] Collection found: 
[org.jbpm.taskmgmt.exe.TaskInstance.variableInstances#11], was: 
[org.jbpm.taskmgmt.exe.TaskInstance.variableInstances#11] (uninitialized)
  | 17:30:57,484 DEBUG [Collections] Collection found: 
[org.jbpm.taskmgmt.exe.TaskInstance.pooledActors#11], was: 
[org.jbpm.taskmgmt.exe.TaskInstance.pooledActors#11] (uninitialized)
  | 17:30:57,484 DEBUG [Collections] Collection found: 
[org.jbpm.taskmgmt.exe.TaskInstance.comments#11], was: 
[org.jbpm.taskmgmt.exe.TaskInstance.comments#11] (uninitialized)
  | 

Is it supose to be (uninitialized) ? Am I doing this the wrong way?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050248#4050248

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050248
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: tasklist and variables

2007-05-30 Thread ricardomarques
Is there some example on using this? chapter 10 and 11 give some lights but 
still...

I've read also some stuff about TaskController but i can see how I call him.


Really need some help here, thanks!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4049767#4049767

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4049767
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - tasklist and variables

2007-05-29 Thread ricardomarques
Hi I'm using the following process, and I wanted to start a work on a instance 
of this process, and give some input to the process continues.

I access the user grover tasklist and start a work on a task instance using the 
class StartWorkOnTaskCommand, after this i wanna show the variables  start-date 
and duration for user input.

My problem is that currently after I start a work on a process I get the 
VariableContainer without variables.

I'm bad understanding  the way this works?



  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=urn:jbpm.org:jpdl-3.1  name=holiday-request
  |swimlane name=initiator
  |   assignment expression=user(grover)/assignment
  |/swimlane
  |start-state name=enter request
  |   task name=request entry swimlane=initiator
  |  controller
  | variable name=start date 
access=read,write,required/variable
  | variable name=duration 
access=read,write,required/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/start-state
  |end-state name=end/end-state
  |task-node name=evaluate request
  |   task name=entry evaluation swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info access=read/variable
  | variable name=decision/variable
  |  /controller
  |   /task
  |   transition name=More info needed to=give addition 
info/transition
  |   transition name=approve/disapprove to=end/transition
  |/task-node
  |task-node name=give addition info
  |   task name=additional info entry swimlane=initiator
  |  controller
  | variable name=start date access=read/variable
  | variable name=duration access=read/variable
  | variable name=info/variable
  |  /controller
  |   /task
  |   transition name= to=evaluate request/transition
  |/task-node
  | /process-definition
  | 


  | cmd = new VariablesCommand();
  | ((VariablesCommand) cmd).setTaskInstanceId(tid);
  | result = getEjbClient().getCommandService().execute(cmd);
  | 
  | this.vc = (VariableContainer) result;
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4049369#4049369

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4049369
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - new instance

2007-05-22 Thread ricardomarques
Someone see anything that could be wrong?

Process:


  | 
  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition 
  |   xmlns=urn:jbpm.org:jpdl-3.2
  |   name=simple
  |start-state name=start
  |   transition name=to_state to=first
  |  action name=action 
class=com.sample.action.MessageActionHandler
  | messageGoing to the first state!/message
  |  /action
  | 
  | 
  |   /transition
  |/start-state
  |state name=first
  |   transition name=to_end to=end
  |  action name=action 
class=com.sample.action.MessageActionHandler
  | messageAbout to finish!/message
  |  /action
  |   /transition
  |/state
  |end-state name=end/end-state
  | /process-definition
  | 
  | 


Instanciation code:


  | 
  | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  | 
  | ProcessInstance processInstance = null;
  |ProcessDefinition processDefinition = 
jbpmContext.getGraphSession().getProcessDefinition(15);
  | 
  |processInstance = 
(ProcessInstance)processDefinition.createInstance();
  |processInstance.signal();
  | 
  | jbpmContext.save(processInstance);
  |
  | }
  | catch (Exception e) {
  | e.printStackTrace();
  | }
  | finally {
  | jbpmContext.close();
  | }
  | 
  | 


Exception:


  | 
  | 12:07:30,093 ERROR [STDERR] org.jbpm.JbpmException: token 'Token(/)' can't 
be signalled cause it is currently not positioned in a node
  | 12:07:30,093 ERROR [STDERR] at 
org.jbpm.graph.exe.Token.signal(Token.java:134)
  | 12:07:30,093 ERROR [STDERR] at 
org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:251)
  | 12:07:30,093 ERROR [STDERR] at 
pep.workflow.console.servlets.UploadServlet.processRequest(UploadServlet.java:47)
  | 12:07:30,093 ERROR [STDERR] at 
pep.workflow.console.servlets.UploadServlet.doGet(UploadServlet.java:80)
  | 12:07:30,203 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  | 12:07:30,203 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 12:07:30,203 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 12:07:30,203 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 12:07:30,203 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 12:07:30,203 ERROR [STDERR] at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 12:07:30,203 ERROR [STDERR] at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 12:07:30,203 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
  | 
  | 

Help!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047536#4047536

Reply to the post : 

[jboss-user] [JBoss jBPM] - Re: new instance

2007-05-22 Thread ricardomarques
Thanks for the quick reply kukeltje. I'm really getting nuts with this. Here's 
the log, please let me know if is enough for you.

By the way, i've tried the code the same way than I, and the result was the 
same.


  | 
  | 13:37:04,750 DEBUG [DefaultSaveOrUpdateEventListener] saving transient 
instance
  | 13:37:04,750 DEBUG [AbstractSaveEventListener] saving 
[org.jbpm.graph.exe.ProcessInstance#null]
  | 13:37:04,750 DEBUG [AbstractSaveEventListener] executing insertions
  | 13:37:04,750 DEBUG [Cascade] processing cascade ACTION_SAVE_UPDATE for: 
org.jbpm.graph.exe.ProcessInstance
  | 13:37:04,750 DEBUG [CascadingAction] cascading to saveOrUpdate: 
org.jbpm.graph.exe.Token
  | 13:37:05,250 DEBUG [VersionValue] version unsaved-value strategy UNDEFINED
  | 13:37:05,250 DEBUG [IdentifierValue] id unsaved-value: 0
  | 13:37:05,250 DEBUG [AbstractSaveEventListener] transient instance of: 
org.jbpm.graph.exe.Token
  | 13:37:05,250 DEBUG [DefaultSaveOrUpdateEventListener] saving transient 
instance
  | 13:37:05,250 DEBUG [AbstractSaveEventListener] saving 
[org.jbpm.graph.exe.Token#null]
  | 13:37:05,250 DEBUG [AbstractSaveEventListener] executing insertions
  | 13:37:05,250 DEBUG [Cascade] processing cascade ACTION_SAVE_UPDATE for: 
org.jbpm.graph.exe.Token
  | 13:37:05,750 DEBUG [Cascade] done processing cascade ACTION_SAVE_UPDATE 
for: org.jbpm.graph.exe.Token
  | 13:37:05,750 DEBUG [Versioning] using initial version: 0
  | 13:37:05,781 DEBUG [AbstractSaveEventListener] executing identity-insert 
immediately
  | 13:37:05,781 DEBUG [AbstractEntityPersister] Inserting entity: 
org.jbpm.graph.exe.Token (native id)
  | 13:37:05,781 DEBUG [AbstractEntityPersister] Version: 0
  | 13:37:05,781 DEBUG [AbstractBatcher] about to open PreparedStatement (open 
PreparedStatements: 0, globally: 0)
  | 13:37:06,250 DEBUG [SQL] insert into JBPM_TOKEN (VERSION_, NAME_, START_, 
END_, NODEENTER_, NEXTLOGINDEX_, ISABLETOREACTIVATEPARENT_, 
ISTERMINATIONIMPLICIT_, ISSUSPENDED_, LOCK_, NODE_, PROCESSINSTANCE_, PARENT_, 
SUBPROCESSINSTANCE_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
  | 13:37:06,250 DEBUG [AbstractBatcher] preparing statement
  | 13:37:06,250 DEBUG [AbstractEntityPersister] Dehydrating entity: 
[org.jbpm.graph.exe.Token#null]
  | 13:37:06,250 DEBUG [IntegerType] binding '0' to parameter: 1
  | 13:37:06,250 DEBUG [StringType] binding null to parameter: 2
  | 13:37:06,250 DEBUG [TimestampType] binding '2007-05-22 13:37:04' to 
parameter: 3
  | 13:37:06,265 DEBUG [TimestampType] binding null to parameter: 4
  | 13:37:06,265 DEBUG [TimestampType] binding null to parameter: 5
  | 13:37:06,265 DEBUG [IntegerType] binding '0' to parameter: 6
  | 13:37:06,265 DEBUG [BooleanType] binding 'true' to parameter: 7
  | 13:37:06,750 DEBUG [BooleanType] binding 'false' to parameter: 8
  | 13:37:06,750 DEBUG [BooleanType] binding 'false' to parameter: 9
  | 13:37:06,750 DEBUG [StringType] binding null to parameter: 10
  | 13:37:06,750 DEBUG [LongType] binding null to parameter: 11
  | 13:37:06,750 DEBUG [LongType] binding null to parameter: 12
  | 13:37:06,750 DEBUG [LongType] binding null to parameter: 13
  | 13:37:06,750 DEBUG [LongType] binding null to parameter: 14
  | 13:37:06,765 DEBUG [IdentifierGeneratorFactory] Natively generated 
identity: 90
  | 13:37:07,250 DEBUG [AbstractBatcher] about to close PreparedStatement (open 
PreparedStatements: 1, globally: 1)
  | 13:37:07,250 DEBUG [AbstractBatcher] closing statement
  | 13:37:07,250 DEBUG [Cascade] processing cascade ACTION_SAVE_UPDATE for: 
org.jbpm.graph.exe.Token
  | 13:37:07,250 DEBUG [Cascade] done processing cascade ACTION_SAVE_UPDATE 
for: org.jbpm.graph.exe.Token
  | 13:37:07,250 DEBUG [Cascade] done processing cascade ACTION_SAVE_UPDATE 
for: org.jbpm.graph.exe.ProcessInstance
  | 13:37:07,250 DEBUG [Versioning] using initial version: 0
  | 13:37:07,250 DEBUG [AbstractSaveEventListener] executing identity-insert 
immediately
  | 13:37:07,250 DEBUG [AbstractEntityPersister] Inserting entity: 
org.jbpm.graph.exe.ProcessInstance (native id)
  | 13:37:07,750 DEBUG [AbstractEntityPersister] Version: 0
  | 13:37:07,750 DEBUG [AbstractBatcher] about to open PreparedStatement (open 
PreparedStatements: 0, globally: 0)
  | 13:37:07,750 DEBUG [SQL] insert into JBPM_PROCESSINSTANCE (VERSION_, KEY_, 
START_, END_, ISSUSPENDED_, PROCESSDEFINITION_, ROOTTOKEN_, SUPERPROCESSTOKEN_) 
values (?, ?, ?, ?, ?, ?, ?, ?)
  | 13:37:07,750 DEBUG [AbstractBatcher] preparing statement
  | 13:37:07,750 DEBUG [AbstractEntityPersister] Dehydrating entity: 
[org.jbpm.graph.exe.ProcessInstance#null]
  | 13:37:07,750 DEBUG [IntegerType] binding '0' to parameter: 1
  | 13:37:08,250 DEBUG [StringType] binding null to parameter: 2
  | 13:37:08,250 DEBUG [TimestampType] binding '2007-05-22 13:37:04' to 
parameter: 3
  | 13:37:08,250 DEBUG [TimestampType] binding null to parameter: 4
  | 13:37:08,250 DEBUG [BooleanType] binding 'false' to parameter: 5
  | 13:37:08,250 DEBUG [LongType] 

[jboss-user] [JBoss jBPM] - Re: new instance

2007-05-22 Thread ricardomarques
Hello Martin, thanks for your feedback.

Regarding your post, you got the rabbit! I get no rows for that query. In fact 
I  only get rows for the first two process that I deployed, and I going on 15th.

The code i'm using to deploy is this:


  | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  | ProcessDefinition p = new ProcessDefinition(myprocess);
  | 
  | p.parseParZipInputStream(new ZipInputStream(new 
FileInputStream(c:\\myprocess.par)));
  | 
  | jbpmContext.deployProcessDefinition(p);
  | 
  |
  | }
  | catch (Exception e) {
  | e.printStackTrace();
  | }
  | finally {
  | jbpmContext.close();
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047585#4047585

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047585
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: new instance

2007-05-22 Thread ricardomarques
Wee! It works now thanks man, I will make sure that you will have a place 
in heaven :P


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047615#4047615

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047615
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Why doesn't work?

2007-05-21 Thread ricardomarques
Ok here's the log:


  | 10:31:20,953 DEBUG [CommandServiceBean] getting jbpm configuration resource 
from the environment properties
  | 10:31:21,390 DEBUG [UIComponentTag] Exited encodeEnd for client-Id: _idJsp0
  | 10:31:21,390 DEBUG [CommandServiceBean] couldn't find configuration 
property JbpmCfgResource through JNDI
  | 10:31:21,390 DEBUG [CommandServiceBean] getting default jbpm configuration 
resource (jbpm.cfg.xml)
  | 10:31:21,390 DEBUG [CommandServiceBean] handing over the command execution 
to the command service
  | 10:31:21,390 DEBUG [JbpmContextInfo] creating jbpm context with service 
factories '[tx, message, scheduler, logging, persistence, authentication]'
  | 10:31:21,390 DEBUG [FacesServlet] service end
  | 10:31:21,890 DEBUG [JbpmContext] creating [EMAIL PROTECTED]
  | 10:31:21,890 DEBUG [CommandServiceBean] executing [EMAIL PROTECTED]
  | 10:31:21,890 DEBUG [DbPersistenceServiceFactory] creating persistence 
service
  | 10:31:21,890 DEBUG [DbPersistenceService] creating hibernate session
  | 10:31:21,890 DEBUG [SessionImpl] opened session at timestamp: 
4832214556221440
  | 10:31:21,890 DEBUG [DbPersistenceService] beginning hibernate transaction
  | 10:31:21,890 DEBUG [JDBCTransaction] begin
  | 10:31:21,890 DEBUG [ConnectionManager] opening JDBC connection
  | 10:31:21,890 DEBUG [DriverManagerConnectionProvider] total checked-out 
connections: 1
  | 10:31:21,890 DEBUG [DriverManagerConnectionProvider] opening new JDBC 
connection
  | 10:31:21,906 DEBUG [DriverManagerConnectionProvider] created connection to: 
jdbc:mysql://localhost:3306/workflow-server, Isolation Level: 4
  | 10:31:21,906 DEBUG [JDBCTransaction] current autocommit status: false
  | 10:31:21,906 DEBUG [JDBCContext] after transaction begin
  | 10:31:21,937 DEBUG [QueryPlanCache] located HQL query plan in cache (
  | 
  |   select ti
  |   from org.jbpm.taskmgmt.exe.TaskInstance as ti
  |   where ti.actorId = :actorId
  | and ti.isSuspended != true
  | and ti.isOpen = true
  | 
  |   )
  | 10:31:22,390 DEBUG [QueryPlanCache] located HQL query plan in cache (
  | 
  |   select ti
  |   from org.jbpm.taskmgmt.exe.TaskInstance as ti
  |   where ti.actorId = :actorId
  | and ti.isSuspended != true
  | and ti.isOpen = true
  | 
  |   )
  | 10:31:22,390 DEBUG [HQLQueryPlan] find: 
  | 
  |   select ti
  |   from org.jbpm.taskmgmt.exe.TaskInstance as ti
  |   where ti.actorId = :actorId
  | and ti.isSuspended != true
  | and ti.isOpen = true
  | 
  |   
  | 10:31:22,390 DEBUG [QueryParameters] named parameters: {actorId=grover}
  | 10:31:22,890 DEBUG [AbstractBatcher] about to open PreparedStatement (open 
PreparedStatements: 0, globally: 0)
  | 10:31:22,890 DEBUG [SQL] select taskinstan0_.ID_ as ID1_27_, 
taskinstan0_.VERSION_ as VERSION3_27_, taskinstan0_.NAME_ as NAME4_27_, 
taskinstan0_.DESCRIPTION_ as DESCRIPT5_27_, taskinstan0_.ACTORID_ as 
ACTORID6_27_, taskinstan0_.CREATE_ as CREATE7_27_, taskinstan0_.START_ as 
START8_27_, taskinstan0_.END_ as END9_27_, taskinstan0_.DUEDATE_ as 
DUEDATE10_27_, taskinstan0_.PRIORITY_ as PRIORITY11_27_, 
taskinstan0_.ISCANCELLED_ as ISCANCE12_27_, taskinstan0_.ISSUSPENDED_ as 
ISSUSPE13_27_, taskinstan0_.ISOPEN_ as ISOPEN14_27_, taskinstan0_.ISSIGNALLING_ 
as ISSIGNA15_27_, taskinstan0_.ISBLOCKING_ as ISBLOCKING16_27_, 
taskinstan0_.TASK_ as TASK17_27_, taskinstan0_.TOKEN_ as TOKEN18_27_, 
taskinstan0_.PROCINST_ as PROCINST19_27_, taskinstan0_.SWIMLANINSTANCE_ as 
SWIMLAN20_27_, taskinstan0_.TASKMGMTINSTANCE_ as TASKMGM21_27_ from 
JBPM_TASKINSTANCE taskinstan0_ where taskinstan0_.ACTORID_=? and 
taskinstan0_.ISSUSPENDED_1 and taskinstan0_.ISOPEN_=1
  | 10:31:23,390 DEBUG [AbstractBatcher] preparing statement
  | 10:31:23,390 DEBUG [StringType] binding 'grover' to parameter: 1
  | 10:31:23,390 DEBUG [AbstractBatcher] about to open ResultSet (open 
ResultSets: 0, globally: 0)
  | 10:31:23,390 DEBUG [Loader] processing result set
  | 10:31:23,390 DEBUG [Loader] done processing result set (0 rows)
  | 10:31:23,390 DEBUG [AbstractBatcher] about to close ResultSet (open 
ResultSets: 1, globally: 1)
  | 10:31:23,390 DEBUG [AbstractBatcher] about to close PreparedStatement (open 
PreparedStatements: 1, globally: 1)
  | 10:31:23,390 DEBUG [AbstractBatcher] closing statement
  | 10:31:23,890 DEBUG [Loader] total objects hydrated: 0
  | 10:31:23,890 DEBUG [StatefulPersistenceContext] initializing non-lazy 
collections
  | 10:31:23,890 DEBUG [QueryPlanCache] located HQL query plan in cache (
  | 
  |   select distinct ti
  |   from org.jbpm.taskmgmt.exe.PooledActor pooledActor
  |join pooledActor.taskInstances ti
  |   where pooledActor.actorId in ( :actorIds )
  | and ti.actorId is null
  | and ti.isSuspended != true
  | and ti.isOpen = true
  | 
  |   )
  | 10:31:23,890 DEBUG [QueryPlanCache] located HQL query plan in cache (
  |   

[jboss-user] [JBoss jBPM] - Re: Why doesn't work?

2007-05-21 Thread ricardomarques
BTW, i'm trying to isolate the problem, now i've tried to execute the process 
from another way, this time using StartProcessInstanceCommand. 

Using this code:


  | Properties props = System.getProperties();
  | try {
  | 
  | props.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
  | props.put(Context.PROVIDER_URL, jnp://localhost:1099);
  | props.put(Context.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);
  | 
  | Context ctx = new InitialContext(props);
  | 
  | Object obj = ctx.lookup(CommandService);
  | 
  | CommandServiceRemoteHome remoteCommandService = 
(CommandServiceRemoteHome) 
javax.rmi.PortableRemoteObject.narrow(obj,CommandServiceRemoteHome.class);
  | CommandServiceRemote commandService = 
remoteCommandService.create();
  | 
  | StartProcessInstanceCommand cmd = new 
StartProcessInstanceCommand();
  | 
  | cmd.setProcessName(send mail 4);
  | cmd.setCreateStartTask(false);
  | cmd.setActorId(grover);
  | 
  | 
  | System.out.println(RETURNING OBJECT:  + 
commandService.execute(cmd).toString());
  | 
  | commandService.remove();
  | ctx.close();
  | 

I get this exception:


  | Caused by: org.jbpm.JbpmException: couldn't execute [EMAIL PROTECTED]
  | at 
pep.workflow.server.beans.command.CommandServiceBean.execute(CommandServiceBean.java:71)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
  | at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
  | at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
  | at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
  | ... 24 more
  | Caused by: org.jbpm.JbpmException: token 'Token(/)' can't be signalled 
cause it is currently not positioned in a node
  | at org.jbpm.graph.exe.Token.signal(Token.java:134)
  | at 
org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:251)
  | at 
org.jbpm.command.StartProcessInstanceCommand.execute(StartProcessInstanceCommand.java:32)
  | at 
pep.workflow.server.beans.command.CommandServiceBean.execute(CommandServiceBean.java:67)
  | ... 38 more
  | 
  | 

The process XML is this:


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=urn:jbpm.org:jpdl-3.1  name=sendmail
  |start-state name=Inicio
  |   transition name= to=Send Mail/transition
  |/start-state
  |end-state name=Fim/end-state
  |node name=Send Mail
  |   action class=pep.test.MailMeActionHandler/action
  |   transition name= to=Fim/transition
  |/node
  | /process-definition
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047193#4047193

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047193
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Why doesn't work?

2007-05-18 Thread ricardomarques
Hi guys

I have the following process:


  | process-definition
  |   xmlns=urn:jbpm.org:jpdl-3.1  name=sendmail
  |start-state name=Inicio
  |   transition name= to=Send Mail/transition
  |/start-state
  |end-state name=Fim/end-state
  |node name=Send Mail
  | action class=test.MailMeActionHandler/action
  |   transition name= to=Fim/transition
  |/node
  | /process-definition
  | 

And the following action handler:


  | package pep.test;
  | 
  | import org.jbpm.graph.def.ActionHandler;
  | import org.jbpm.graph.exe.ExecutionContext;
  | //import java.util.Properties;
  | //import javax.mail.*;
  | //import javax.mail.internet.*;
  | import java.io.*;
  | 
  | public class MailMeActionHandler implements ActionHandler {
  | 
  | private static final long serialVersionUID = 1L;
  | 
  | public void execute(ExecutionContext context) throws Exception {
  | 
  | 
  | /* Tenta enviar o e-mail*/
  | 
  |String host = smtp.myserver.com;
  | String from = [EMAIL PROTECTED];
  | String to = [EMAIL PROTECTED];
  |  
  | try {
  | // Get system properties
  | Properties props = System.getProperties();
  | 
  | // Setup mail server
  | Authenticator auth = new PopupAuthenticator();
  | props.put(mail.smtp.host, host);
  | props.put(mail.smtp.auth, true);
  | 
  | // Get session
  | Session session = Session.getInstance(props, auth);
  | session.setDebug(true);
  | //session.setDebug(true);
  | 
  | 
  | 
  | // Define message
  | MimeMessage message = new MimeMessage(session);
  | 
  | 
  | // Set the from address
  | message.setFrom(new InternetAddress(from,Ricardo 
Marques));
  | 
  | // Set the to address
  | message.addRecipient(Message.RecipientType.TO,new 
InternetAddress(to,Ricardo Marques));
  | 
  | // Set the subject
  | message.setSubject(Hello JavaMail);
  | 
  | // Set the content
  | message.setText(Welcome to JavaMail);
  | 
  | // Send message
  | Transport.send(message);
  | System.out.println(OK Man);
  |  }
  |  catch (Exception e) {
  |  e.printStackTrace();
  |  }
  |  
  |  context.leaveNode();
  | 
  | }
  | 
  | static class PopupAuthenticator extends Authenticator {
  | public PasswordAuthentication getPasswordAuthentication() {
  | return new PasswordAuthentication([EMAIL PROTECTED], 
**);
  | }
  | }
  | 
  | }
  | 

But just can't see the result of the execution, or any kind of error. On the 
process instances table, it appears a record about the execution, but nothing 
else.

The mail code, detach from the jbpm enviromnent, it works, so I suppose that 
should work on the enviroment.

I want to start the process and receive a e-mail.

Please need some help..!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4046768#4046768

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046768
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Why doesn't work?

2007-05-18 Thread ricardomarques
The package name isn't a problem, my mistake and I paste the code here.

Regarding how the process is design, i had look at the websale example, 
particulary to this part:


  | node name=update books
  | action class=org.jbpm.websale.UpdateBooks
  |   msgaccountancy application is now informed of the payment/msg
  | /action
  | transition to=salejoin /
  |   /node
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4046814#4046814

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046814
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Why doesn't work?

2007-05-18 Thread ricardomarques
I suspect that the problem has something doing with i'm using the class 
NewProcessInstanceCommand to start an execution, but something more must miss.

Do I need to signal a instance to start even i had a start node?

help needed!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4046894#4046894

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046894
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Figuring out how process instanciation!

2007-05-16 Thread ricardomarques
Hi all

My purpuse is, from a user (grover on this case), be able to start a process 
and view that process on the tasklist.

I think I haven't got many problems starting the process, but something must 
miss, I see the instance created on jbpm_processinstance, but can see the 
results of the execution.

here's my code:

on the ejb side:


  | Object result = null;
  | JbpmContext jbpmContext = this.jbpmConfiguration.createJbpmContext();
  | try {
  |   log.debug(executing  + command);
  |   result = command.execute(jbpmContext);
  | } catch (Exception e) {
  |   throw new JbpmException(couldn't execute +command, e);
  | } finally {
  |   jbpmContext.close();
  | }
  | return result;

on the client side:

  | NewProcessInstanceCommand cmd = null;
  |
  | cmd = new NewProcessInstanceCommand();
  | cmd.setProcessId(Long.parseLong(pid));
  | 
  | getCommandService().execute(cmd);

to get my tasklist:

  | GetTaskListCommand cmd = null;
  | 
  | cmd = new GetTaskListCommand(name,true);
  | List result = (List) getCommandService().execute(cmd);
  | 
  | 


help?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4046096#4046096

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046096
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - JbpmSession deprecated or not?

2007-05-03 Thread ricardomarques
Hi 

This is my scenario, please correct me if it's wrong. I have a main class that 
start's my engine with the code:


  | private JbpmConfiguration jbpmConfiguration = null;
  | private JbpmContext jbpmContext = null;
  | 
  | this.jbpmConfiguration = JbpmConfiguration.getInstance();
  | this.jbpmContext = jbpmConfiguration.createJbpmContext();
  | 

Then if needed, other classes access jbpmContext by a get() method.


For example I and to do a query to the engine to retrive the instances running 
of one process. I have look for some info on the forum and most of the times, 
the connection is made by a:

JbpmSession session = JbpmFactory.getInstance.openJbpmConnection();

Well when i read the javadocs about this, it has the following info:

anonymous wrote : Deprecated. use org.jbpm.tc.ContextBuilder and 
org.jbpm.tc.db.JbpmSessionContext instead.

When I look for these classes on the Javadocs I can't find then, neither on 
jbpm 3.2 jars.

So my questions are:

- Is my approach to launching the service, and connection the service is 
correct?

- Should I use JbpmSession? Is it deprecated ? What's the alternative?

Thanks



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042842#4042842

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042842
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: connecting with the API

2007-05-03 Thread ricardomarques
Yeah I'm getting there, but slowly... :)

Just don't get one thing, where are the classes deployed on the database? I'm 
asking this because my purpuse is to use the same Actions to many process 
definitions.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042849#4042849

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042849
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: PAR file definition

2007-05-02 Thread ricardomarques
ok thanks, but still regarding the PAR files, I'm looking at the data model, 
table jbpm_processdefinition, by the name I guess that's where the process 
files are kept. Is my guess right?

Because I can't see where the classes and definition files are kept, it doesn't 
like the table jbpm_processdefinition can record this information. How the PAR 
are saved as a PAR, or the content is split to many other tables?

Can your clear a bit this issue please?

This is a bit important because I would probably to use the same action class 
to many process definitions, don't know if that ir currently possible without 
redundancy.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042373#4042373

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042373
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - No error on deploying

2007-05-02 Thread ricardomarques
hi all

I have this code to upload a definition that I created on eclipse, but it 
simply doesn't deploy, and doesn't output any kind of error.

I'm using the following code:



  | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | 
  | ZipInputStream zis = null;
  | 
  | try {
  | zis = new ZipInputStream(new 
FileInputStream(D:\\mail.par));
  | 
  | ProcessDefinition processDefinition = 
ProcessDefinition.parseParZipInputStream (zis);
  | jbpmContext.deployProcessDefinition (processDefinition);
  | 
  | }
  | catch (Exception ex) {
  | System.err.println(ex);
  | }
  | finally {
  | jbpmContext.close();
  | }

Is every thing alright?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042525#4042525

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042525
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Comunication between processes instances

2007-04-27 Thread ricardomarques
Hi

Is it possible without hacking the core of jBPM, to an action comunicates (JMS 
or by some kind of call) with another process instance, to trigger some kind of 
behavior?


Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041333#4041333

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041333
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - PAR file definition

2007-04-27 Thread ricardomarques
Hi

Is there somewhere something ragarding the PAR files definition, rules, how 
they are composed something like that. I can see eclipse creates  them, but 
i'like to know what's mandatory or not.


Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041352#4041352

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041352
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: about jbpmcontext

2007-04-27 Thread ricardomarques
hi guys

I really need some feedback here please. I have try to find out the start point 
of the application, but I can't, i still don't get how this part works.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4041494#4041494

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041494
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problem: hibernate and webapp sample

2007-04-24 Thread ricardomarques
humm is there some doc regarding this problem? I've never used this database so 
i don't get the clue how to do that.

I'm probably going to try to use mysql, i think i have read some doc about 
that, but don't know where.

Thanks anyway :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040121#4040121

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040121
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - about jbpmcontext

2007-04-24 Thread ricardomarques
Hi all


  | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | 

One thing that I don't understand, when I create a jbpm context, am I creating 
an engine instance, or connecting to one?


Is the JbpmContext the only way to reach the engine?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040239#4040239

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040239
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problem using mysql

2007-04-24 Thread ricardomarques
which sql script are you using to create the database? there a script for mysql 
5 on jboss wiki, i guess that one that comes width jbpm 3.2 doesn't work very 
well.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040241#4040241

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040241
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problem using mysql

2007-04-24 Thread ricardomarques
look at this: http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmOnTomcat

I've followed this tutorial and i have everything except the realm 
autentication working 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040269#4040269

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040269
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Actions behavior

2007-04-23 Thread ricardomarques
Hi all

I've read about the Actions but I'm here width some questions, that i 
appreciate some feedback:

Can a action accept arguments and variables?

Is an action always associated with a process, or i could have the same action 
for various process deployed? Can i retrieve the list of Actions avaiable?

From a Action instance from a certain process, can I access to another process 
instance?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039845#4039845

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Actions behavior

2007-04-23 Thread ricardomarques
Thanks it helped :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039913#4039913

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Problem: hibernate and webapp sample

2007-04-23 Thread ricardomarques
Hi guys

I'm getting this error when running the web app sample, with the jbpm 3.2 
hibernate configurations:


  | 18:09:21,996 ERROR [STDERR] org.hibernate.exception.SQLGrammarException: 
could not execute query
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | at org.hibernate.loader.Loader.doList(Loader.java:2147)
  | at 
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
  | at org.hibernate.loader.Loader.list(Loader.java:2023)
  | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
  | at 
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
  | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | at 
org.jbpm.db.GraphSession.findLatestProcessDefinitions(GraphSession.java:184)
  | at HomeServlet.getProcessDefinitions(HomeServlet.java:76)
  | at HomeServlet.writeProcessDefinitionOptions(HomeServlet.java:62)
  | at HomeServlet.service(HomeServlet.java:49)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.sql.SQLException: Table not found in statement [select 
processdef0_.ID_ as ID1_30_, processdef0_.NAME_ as NAME3_30_, 
processdef0_.DESCRIPTION_ as DESCRIPT4_30_, processdef0_.VERSION_ as 
VERSION5_30_, processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN6_30_, 
processdef0_.STARTSTATE_ as STARTSTATE7_30_ from JBPM_PROCESSDEFINITION 
processdef0_ order by processdef0_.NAME_, processdef0_.VERSION_ desc]
  | at org.hsqldb.jdbc.Util.throwError(Unknown Source)
  | at org.hsqldb.jdbc.jdbcPreparedStatement.init(Unknown Source)
  | at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
  | at 
org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:497)
  | at 
org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:415)
  | at 
org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
  | at 
org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1560)
  | at org.hibernate.loader.Loader.doQuery(Loader.java:661)
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
  | at org.hibernate.loader.Loader.doList(Loader.java:2144)
  | ... 30 more
  | 18:09:22,293 ERROR [GraphSession] 
org.hibernate.exception.SQLGrammarException: could not execute query
  | 18:09:22,293 ERROR [[HomeServlet]] Servlet.service() for servlet 
HomeServlet threw exception
  | org.jbpm.JbpmException: couldn't find latest versions of process definitions
  | 
  | 

Ideas?

PS: first time using hibernate.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039932#4039932

Reply to the post : 

[jboss-user] [JBoss jBPM] - retriving actions

2007-04-20 Thread ricardomarques
Hi

Can I retrive via Bean a list of all actions avaiable? Does the existing beans 
can do that, or must i write a Bean for that purpose? Or does the actions are 
only deployed for their process?

Thank's

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039206#4039206

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039206
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: task waiting for event's

2007-04-19 Thread ricardomarques
I've reading the workflow patterns and what i'm talking about is triggers, 
pattern 24 and 25.

Is this implemented? If not, maybe i can do it, if a have a little support on 
the API, since is completely unknowned to me.


Need some urgent feedback on this issue.

Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038913#4038913

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - connecting with the API

2007-04-18 Thread ricardomarques
Hi all

I'm currently evaluating jBPM, and after reading some docs I'm still wondering 
how can i contact the jBPM server, to interact with the API. When I develop an 
Action how can I deploy it? Must I recompile jBPM with that option?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038310#4038310

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038310
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: connecting with the API

2007-04-18 Thread ricardomarques
Well I've read some documentation on the forum and the jPDL User Guide, I guess 
I was hopping the find some documentation on the API (except the javadoc), with 
some examples and stuff like that.

About my classes deployment, like Actions, how is the deployment done? Is there 
an API for that?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038363#4038363

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038363
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - XPDL and BPEL on JBPM

2007-03-19 Thread ricardomarques
Hi all

I'm new on this area and I'm trying to evaluate some solutions in this area. 
Here's my case: I want a process designer (BPMN) that saves the information in 
xpdl, then by some way, convert the xpdl file on a bpel file to deploy in jbpm.

Is this convertion possible (xpdl-bpel) ? Can u guys point me the right 
direction?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4029367#4029367

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029367
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user