[jboss-user] [JBoss jBPM] - Re: Terminated or deleted process instance?

2008-08-14 Thread coolex
Aha, ok.
So, the process instance is not deleted after it has been terminated?
Can I restart it, if I know its ID?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170519#4170519

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170519
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Terminated or deleted process instance?

2008-08-12 Thread coolex
Hello!

I am working on a small application and use JBPM on my normal JBoss server 
without the jbpm-console.
I can start my processes, navigate through the processes and end them. 
When I end my process instances they simply disappears but I don't really know 
if the process instance still exists in the JBPM DB.

So, what happens with an ended process instance? Is still available and able to 
be restarted again?

bye

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170200#4170200

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170200
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: ContextInstance of a non-null ProcessInstance is null

2008-07-31 Thread coolex
I figured out that the rule (defined in the first Node) is triggered before the 
process instance was created. 
But this does not happen if I define the rule in the second node. In this case 
everything works fine.
Can I define the process that way that the process-instance will be created 
before the rule (in the first task is triggered).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168041#4168041

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168041
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: ContextInstance of a non-null ProcessInstance is null

2008-07-31 Thread coolex
Maybe the processdefinition will help:
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
policyPricingWorkingMemory
  | 
  | #{actor}
  | #{processInstance}
  | #{processManager}
  | 
  | 
  | 
  | 
  | 
  | ...
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168036#4168036

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168036
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - ContextInstance of a non-null ProcessInstance is null

2008-07-31 Thread coolex
Hello!

I have this method which I call from a jboss rule:
public void dosth(org.jbpm.graph.exe.ProcessInstance processInstance){
  | System.out.println("The Id of the process is: "+ 
processInstance.getId() );
  | System.out.println("The value of the variabel is: "+ 
processInstance.getContextInstance().getVariable("owner") );
  | }The result is:
  | The Id of the process is: 1
  | The value of the variabel is: null
I am 100% sure that I have set the process variable before with this 
code:org.jboss.seam.bpm.ProcessInstance.instance().getContextInstance().setVariable("owner",
 "testowner");
I made some other tests, so I know very well that this variable has been set 
perfectly.
The rule is also working without any problems.
But why I can't get the ContextInstance out of my non-null ProcessInstance?

bye

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168034#4168034

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168034
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Creating new tasks in a task-node during process runtime

2008-07-31 Thread coolex
Ok, many thanks! 
I will try them out.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167903#4167903

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167903
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Creating new tasks in a task-node during process runtime

2008-07-31 Thread coolex
Cool!
Is there any example in the documentation? I could not find any example.
How should I proceed in case I want to do this?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167845#4167845

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Creating new tasks in a task-node during process runtime

2008-07-30 Thread coolex
Hi everybody!

I want to to know if it possible to create new tasks in one task-node during 
the runtime of a process? So, even if the process has encoutered a task-node is 
possible to create new tasks in this task-node?

bye

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167713#4167713

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167713
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to get the actor-id of the actor who started a proce

2008-07-30 Thread coolex
Does it also make sense to create a process variable and store the actor-id in 
it?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167635#4167635

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167635
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - How to get the actor-id of the actor who started a process?

2008-07-29 Thread coolex
Hello!

When I start a process, can I get the information WHO (actor-id) started the 
process?
I need it, because in my application many customers can start their own 
processes but they should not get in the way of other actor's processes. So, if 
customer A starts a process, customer B should not see it.

Thanks for help in advance.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167429#4167429

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167429
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Difference pooled-actors and swimlanes

2008-07-22 Thread coolex
WOW!
Now I understand it very well. Cool. I've a book about jbpm and the docu but 
none of them describes this part of jbpm this way, like you. Perfect! 
Many thanks.

Still one question left about the AND issue. This was my example

Is it possible to make clear that a user can only execute this task if he has 
the "user" AND the "admin" role?
This example is not that good, but anyway I'm interested in the AND issue of 
roles.

Thanks again.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166044#4166044

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166044
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Difference pooled-actors and swimlanes

2008-07-22 Thread coolex
Additional question.
We have this assignment:

That means that users can execute this task which are in one of this groups 
(user OR admin). How can I enforce that the user has to be in both groups (user 
AND admin)?

This question is very important for me.
Thanks in advance.

Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165982#4165982

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165982
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Difference pooled-actors and swimlanes

2008-07-22 Thread coolex
Many thanks. You are answering very fast.
anonymous wrote : ... of who is selected ... 
Where should the user be selected? 

anonymous wrote : ...the originally assigned actor is chosen again.
Sorry, I don't understand this part. What do you mean by "originally assigned"?

anonymous wrote : Regarding the last question, you have to indeed assign an 
individual actor when acting upon it, but leave the pooled-actors as they are. 
That way, you can always reassign back to the pool by making the actor-id null
Sorry, but this part is also not easy to understand. So at any time I have to 
assign an individual actor explicitly to a task? I mean, my application is 
still doing what I expect by not assigning the user explicitly.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165906#4165906

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165906
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Difference pooled-actors and swimlanes

2008-07-22 Thread coolex
Hi!

After I've read the docu I'm more confused about pooled-actors, swimlanes, 
roles, groupActorID.
Especially I don't really understand the difference between swimlane and 
pooled-actor (actor groups).

For my application I'm using a simple user-role concept. Every user can have 
many roles. For now I'm using pooled-actors but I am not sure whether using 
swimlanes is better or not.

Another problem I have that I've read in the docu that a user must be assigned 
to a pooled task to execute it. I have many users with roles and don't to 
assign explicitly a user to a task to execute it. So, what is wrong?

Thanks for all replies.
Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165830#4165830

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165830
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Can we assign mulptiple swimalnes to a task??

2008-07-22 Thread coolex
BTW. 
I am a little bit confused about :
  |  especialley "group(SalesGroup1, SalesGroup2)". Is "group" a predefined 
attribute/command of jbpm or can I write anything I want in expression?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165826#4165826

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165826
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Redirect the user to a page when entering a node

2008-07-15 Thread coolex
Thanks for reply.
I know the examples very well but the way they do it is a static. That means: 
each time I change my process I have to change other files (Java classes or xml 
files). My intention is to make it somehow dynamic. So if I change a direction 
to another node I shouldn't change any navigation rules or so.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164412#4164412

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164412
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Redirect the user to a page when entering a node

2008-07-14 Thread coolex
1.) JSF, RichFaces (SEAM)
2.) Workflow (normal long-running business process)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164254#4164254

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164254
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Redirect the user to a page when entering a node

2008-07-14 Thread coolex
Hello!

I'm looking for a way to redirect my users to s specific page (e.g. index.html) 
when they are entering a node of a process. Maybe there is a java command I can 
use in a node action to solve the problem.

Thanks in advance.
Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164153#4164153

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164153
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to deploy the jbpm-console to the standard jboss ser

2008-07-12 Thread coolex
Can you, please, provide me the new server link?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164012#4164012

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164012
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to deploy the jbpm-console to the standard jboss ser

2008-07-11 Thread coolex
Thanks!

I've read the guide on the wiki but I cannot connect to the cvs server. I'm 
using the CVS client of eclipse. I get the message that it was not possible to 
connect to anoncvs.forge.jboss.com.
Do I have to use another cvs client?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163947#4163947

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163947
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - How to deploy the jbpm-console to the standard jboss server

2008-07-11 Thread coolex
Hi all!

I'm trying to deploy the jbpm-console on my standard jboss server because I'm 
working with SEAM&jbpm. Because of SEAM I don't need the particular jpdl-jboss 
server anymore for my projects. But I need the jbpm-console for monitoring my 
projects.

Unfortunately I was not successful while trying to deploy the jbpm-console to 
my standard jboss server. I've tried simply to copy, I've created a new project 
and copied all xhtml files, but nothing works.

Is there any special way to do it?

Many thanks in advance.

bye,
Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163909#4163909

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163909
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Taskinstance: instatiate tasks to myself

2008-06-30 Thread coolex
Is that correct, what I've written above?
Please, at least one hint!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161592#4161592

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161592
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Taskinstance: instatiate tasks to myself

2008-06-30 Thread coolex
Ok, maybe I have a solution.
Each time I click on the "create new Item" button a new process is instantiated 
and not a new task to the same process. Is that correct?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161533#4161533

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161533
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Taskinstance: instatiate tasks to myself

2008-06-30 Thread coolex
Hello!

I don't really understand the idea of taskInstances.

I tried out this example:
http://docs.jboss.com/seam/2.1.0.A1/reference/en/html/tutorial.html#todo
and now I'm confused about the idea of tasks.
In this example we have a very simple process: start-task-end.
But the actor can instantiate the task many times to himself. I thought that 
this is not possible. My understanding was that during the processflow the 
tasks are instatiated by the engine (from the process definition) for the actor.
Additionally I thought that a task can be instantiated only one time if it is 
only once in the processdefinition.

Bye,

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161510#4161510

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161510
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - JBpm Process and JBPM SEAM Pageflows

2008-06-28 Thread coolex
Hello!

I started to work with SEAM and JBPM. Now I'm a little bit confused about the 
pagelows I can crreate in SEAM with the help of jbpm and I can create 
processes. But I want to create processes that are also pageflows.
That means I want to implement a process in my application and also that proces 
has to go through a pageflow, so if I delete a node in my process the related 
page shouldn't be visible in the flow of the process.

Please give me some hints.
Many Thanks.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161338#4161338

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161338
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Make business processes dynamic

2008-06-16 Thread coolex
Hello!

I'm trying to find out how I can implement kind of dynamic process with the 
help of the jbpm engine. That means that the process actually has to be changed 
during lifetime. As far as I know practically it is not possible to do it with 
the jbpm, because once the process is instanciated it cannot be changed. 

My goal is a change of my processes depending of the data alternatively 
information that the application environment delivers to my application.

I think with the help of forks or "decision nodes" it's not done.
Maybe somehow with subprocesses?

Hope you can help me.

Thanks.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158264#4158264

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158264
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Howto integrate the jbpm engine into the normal applicat

2008-06-12 Thread coolex
Thanks for answer.

Can you tell me where exactly these jar files can be found?
I tried to copy them but realized that there are jar files in many different 
directories. 

Is it better to run application on a pure JBoss-JBPM-JPDL 3.2.2 server or on a 
normal Jboss 4.2.2 with an integrated jbpm engine?

Thanks.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157697#4157697

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157697
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Howto integrate the jbpm engine into the normal application

2008-06-12 Thread coolex
Hello!

I've worked with the JBoss JBPM 3.2.2 an I've built some demo application to 
test the engine.
Now I want to integrate the jbpm engine into my normal JBoss AS 4.2.2.
How can I do this?

Hope you can help me.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157610#4157610

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157610
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: While starting process from a servlet error arise

2008-05-17 Thread coolex
MANY THANKS! Now it is working! Wow. I copied the hibernate.cfg.xml from the 
jbpm-console project to my project and it worked.
But still I don't really understand this database problem. I couldn't find any 
infos in the documentation about it. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151582#4151582

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151582
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: While starting process from a servlet error arise

2008-05-16 Thread coolex
Ok, great. Now this is a hibernate configuration problem?
My hibernate.cfg.xml:
  | 
  | 
  | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
  | 
  | 
  |   
  | org.hibernate.dialect.HSQLDialect
  | org.hsqldb.jdbcDriver
  | jdbc:hsqldb:mem:jbpm
  | sa
  | 
  | org.hibernate.cache.HashtableCacheProvider
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | 
  | 
It is the standard file that is created by the JBoss-IDE Eclipse plugin. 
It contains the parts you've posted but I still have the same problem.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151316#4151316

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151316
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: While starting process from a servlet error arise

2008-05-15 Thread coolex
Ok, now it is getting more clear. Thanks. 
anonymous wrote : The process is deployed and works fine.
Here I mean, that I deployed it with the plugin of eclipse so that I can go to 
the jbpm-console, login and see the process.
My idea was to start this process (the same I see in the jbpm-console).
I don't have 2 databases.
Can you plase tell me which files I have to configure?
This is how my project directories looks like:
http://farm4.static.flickr.com/3150/2495261558_4455a2350f.jpg?v=0
I just copied the hiberante.cfg.xml in the WebContent otherwise I get another  
error ("hibernate.cfg.xml not found").

Hope I can solve the problem soon.

Bye

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151163#4151163

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151163
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - While starting process from a servlet error arise

2008-05-15 Thread coolex
Hi!

I created a servlet to start the standard jbpm process "websale". I simply 
deployed it to the server. This is the code:

  | import java.io.IOException;
  | 
  | import javax.servlet.ServletException;
  | import javax.servlet.http.HttpServletRequest;
  | import javax.servlet.http.HttpServletResponse;
  | 
  | import org.jbpm.graph.def.ProcessDefinition;
  | import org.jbpm.JbpmConfiguration;
  | import org.jbpm.JbpmContext;
  | import org.jbpm.db.GraphSession;
  | import org.jbpm.graph.exe.ProcessInstance;
  | 
  | public class HelloWorld extends javax.servlet.http.HttpServlet implements 
javax.servlet.Servlet {
  |static final long serialVersionUID = 1L;
  |
  |  private void startProcessDefinition() {
  | String processDefinitionName = new String("websale");
  | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  | GraphSession graphSession = jbpmContext.getGraphSession();
  | ProcessDefinition definition = 
graphSession.findLatestProcessDefinition(processDefinitionName);
  | ProcessInstance instance = definition.createProcessInstance();
  | instance.signal();
  | jbpmContext.save(instance);
  | } finally {
  | jbpmContext.close();
  | }
  |  }
  |
  | public HelloWorld() {
  | super();
  | }   
  | 
  | protected void doGet(   HttpServletRequest request, 
  | HttpServletResponse 
response) 
  | throws ServletException, IOException {
  | startProcessDefinition();
  | }   
  | }
But when I execute it the following error comes up:
anonymous wrote : org.jbpm.JbpmException: couldn't find process definition 
'websale'
  | 
org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:170)
  | HelloWorld.startProcessDefinition(HelloWorld.java:24)
  | HelloWorld.doGet(HelloWorld.java:43)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
The process is deployed and works fine.
I tried to configure the hibernate.cfg.xml (located in the WebContent 
directory) file and also tried to find some help in the docu. 
Hope you can help me.

Bye

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151154#4151154

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151154
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to start a deployed process from a jsp file?

2008-05-15 Thread coolex
Thank you kukeltje for the hint. The reason I did this is that I just want 
start a processes without creating a perfect code. So, now I'm only 
concentrating on the process start from this jsp. That's all. 
Unfortunately it still not working. I watched the log file of the server. There 
are almost the same infos like I've already posted in here.
So, please does anybody have an idea how to start the process. Maybe you can 
post a sample code.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151039#4151039

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151039
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: jbpmContext.close() save process instance automaticly

2008-05-15 Thread coolex
Hello joy_wind, I would like to know where your code is located. I mean do you 
start it from a jsp file, servlet?
I tried your code in a jsp file but I always get an error.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151029#4151029

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151029
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to start a deployed process from a jsp file?

2008-05-14 Thread coolex
Ok, thank you so far.
Now I created a new JSP file that looks like this:
<%@ page import="org.jbpm.*" %>
  | <%@ page import="org.jbpm.graph.def.*" %>
  | <%@ page import="org.jbpm.graph.exe.*" %>
  | <%@ page import="org.jbpm.db.GraphSession" %>
  | 
  | <%!
  | private void startProcessDefinition() {
  | String processDefinitionName = new String("websale");
  | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  | GraphSession graphSession = jbpmContext.getGraphSession();
  | ProcessDefinition definition = 
graphSession.findLatestProcessDefinition(processDefinitionName);
  | ProcessInstance instance = definition.createProcessInstance();
  | instance.signal();
  | jbpmContext.save(instance);
  | } finally {
  | jbpmContext.close();
  | }
  | }
  | %>
  | 
  | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  | pageEncoding="ISO-8859-1"%>
  | http://www.w3.org/TR/html4/loose.dtd";>
  | 
  | 
  | 
  | Insert title here
  | 
  | 
  | <% startProcessDefinition();%>
  | 
  | 
But when I execute it I get this error:
anonymous wrote : org.apache.jasper.JasperException: Unable to load class for 
JSP
  | 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
  | 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
  | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | org.apache.jasper.JasperException: Unable to load class for JSP
  | 
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598)
  | 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147)
  | 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
  | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
  | java.net.URLClassLoader$1.run(Unknown Source)
  | java.security.AccessController.doPrivileged(Native Method)
  | java.net.URLClassLoader.findClass(Unknown Source)
  | org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
  | org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
  | 
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
  | 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147)
  | 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
  | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
Any idea why this error arise?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150828#4150828

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150828
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to start a deployed process from a jsp file?

2008-05-14 Thread coolex
OK, I'm trying now to execute the following code:
private void startProcessDefinition() {
  | String processDefinitionName = new String("websale");
  | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  | GraphSession graphSession = jbpmContext.getGraphSession();
  | ProcessDefinition definition = 
graphSession.findLatestProcessDefinition(processDefinitionName);
  | ProcessInstance instance = definition.createProcessInstance();
  | instance.signal();
  | jbpmContext.save(instance);
  | } finally {
  | jbpmContext.close();
  | }
  | }
"Websale" is the standard jBPM process that is already deployed on the server. 
Now I just want to start it with the help of this method that is in my jsp file.
Now I don't get any errors but also nothing happens I mean that I don't see in 
the jbpm-console that the process has been started.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150787#4150787

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150787
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to start a deployed process from a jsp file?

2008-05-14 Thread coolex
Where can I find hints how to start a process in a different way?
Or what are other possibilities how to start it?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150783#4150783

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150783
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to start a deployed process from a jsp file?

2008-05-14 Thread coolex
As for beginning I want to avoid MVC. I want to use MVC later. For now I just 
want to start a simple process that is already deployed on the server. I want 
to do this from a jsp or servlet file. That's it. But I cannot find any help 
how to start doing this. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150779#4150779

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150779
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to start a deployed process from a jsp file?

2008-05-14 Thread coolex
So, this is the right way how to start a process from an jsp file?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150773#4150773

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150773
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to start a deployed process from a jsp file?

2008-05-14 Thread coolex
Well, I even copied the xml file in the same directory where I have my jsp file 
but I get the same error (file not found).
Is there any other possibility how to start a process from a jsp file?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150769#4150769

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150769
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - How to start a deployed process from a jsp file?

2008-05-14 Thread coolex
Hello!

I created a new project in my Eclipse. There I created processes and I created 
there my WebContent with JSP files. I deployed everything on the jBoss jBPM 
Server.
Now I want to start the deployed process from this JSP file.
To do this I created a method in my jsp like this:
public void startHelloWorldProcess() {
  | 
  |   ProcessDefinition processDefinition = 
ProcessDefinition.parseXmlInputStream(new FileInputStream(
  | 
"processes/HelloWorld/processdefinition.xml"));
  |   
  |  
  |   ProcessInstance processInstance = 
  |   new ProcessInstance(processDefinition);
  | 
  |   Token token = processInstance.getRootToken();
  |   
  |  
  |   token.signal();
  | 
  | }
  | %>
Unfortunately I get an error that the file does not exist 
(FileNotFoundException). 
My directory structure looks like this:
http://farm3.static.flickr.com/2358/2491603347_65c6a37765.jpg?v=0

Thanks for helping!

Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150754#4150754

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150754
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: jBoss and jBPM plugins in Eclipse

2008-05-14 Thread coolex
Hi!

Many thanks for helping.
So, you mean that if I create a new process, then a JSP file (with the right 
directories) and then deploy it with the deploy tool for processes (Jboss IDE) 
it's done?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150730#4150730

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150730
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: jBoss and jBPM plugins in Eclipse

2008-05-14 Thread coolex
Please, tell me where to find more information.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150604#4150604

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150604
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - jBoss and jBPM plugins in Eclipse

2008-05-13 Thread coolex
Hello!

I'm using the Eclipse IDE for J2EE developers. For deploying my projects I 
simply added a new server like the jBoss 4.2 to the ide and could easily deploy 
the projects by adding them to the server.
But now I'm going to build jsp-webapplication with business-processes and want 
to use the jBoss/jBPM and Eclipse. Now I'm confused how to deploy my 
webapplication with eclipse because now I can't add the jBPM to eclipse like 
the standard version of jBoss. I know how to deploy the processes by using the 
jBoss-IDE but how to bring (deploy) altogether I don't know.
I also noticed that the standard version of jBoss like 4.2 does not have jBPM.

Thanks for help.

Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150352#4150352

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150352
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Database of jBPM

2008-05-09 Thread coolex
Hello!

I'm a little bit confused about how jBPM really works.
Is there a databse behind the engine that handles all the processes? What Db is 
it?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149666#4149666

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149666
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Generating forms problem

2008-05-08 Thread coolex
Ok, thank you very much. It is now working.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149519#4149519

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149519
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Generating forms problem

2008-05-08 Thread coolex
Well, I tried it but I have still the same problem. I just created two 
different fields with labels and created a new button. Then I clicked on "OK". 
At the end I deployed my process and that's all. I tried the new process (new 
ID in the console) but still don't see the form.
Maybe there is something like a naming convention?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149496#4149496

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149496
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Generating forms problem

2008-05-08 Thread coolex
Hello!

I created my own process that I can start in the jbpm-console without any 
problem. For the start node task I created a form like it is described here:
http://wiki.jboss.org/wiki/JbpmGettingStarted
After deploying I restarted the process and on the point where I want to see 
the formular I only see an empty screen and not like in the tutorial a simple 
form. I retried to do the form many times but couldn't find out where the 
problem is.

Hope you can help me.

Thank you.

Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149483#4149483

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149483
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Where and how to define new users?

2008-05-08 Thread coolex
Ok, I found out where I can define new users. 
But still I'm confused. I cannot understand the relation between swimlanes, 
actors, the users and the groups I can define in the jbpm-console.
E.g. the "Fix web order data" task in the websale example is assigned to a 
buyer but I can see the task (with the form) as a normal user in the console 
though there is no user or group in the jbpm-console that is called buyer!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149465#4149465

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149465
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Where and how to define new users?

2008-05-08 Thread coolex
Please, does anybody have an idea?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149457#4149457

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149457
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Where and how to define new users?

2008-05-08 Thread coolex
Ok, I found this file but I only can change the list that displays the users.
I cannot understand where I can define new users? Like the "manager" or the 
simple "user" in the sample of jBoss jBPM console.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149418#4149418

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149418
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Where and how to define new users?

2008-05-08 Thread coolex
Hello all!

I red in the jbpm-console that I have to change the users list in the web.xml. 
But I don't know which web.xml. 
Please tell me where to find this xml file.
I also would like to know if this users are assigned for all my projects and 
processes?

Thanks.

Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149398#4149398

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149398
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2008-05-07 Thread coolex
Ok, thank you very much. It helped me!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149190#4149190

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149190
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - No

2008-05-06 Thread coolex
Hello!

I'm working on the following tutorial:
http://wiki.jboss.org/wiki/JbpmGettingStarted
Unfortunately I stopped on the point where I have to "Add Action" to a task 
(right-click on a task. screenshot!).
The problem is that by right-clicking I get the menu but without the "Add 
Action". 
Additionally I noticed that at the bottom of my process designer I don't have 
the "Swimlanes" tab like in the tutorial but the other tabs exist.

Hope you can help me!

Thanks.
Alex

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148841#4148841

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148841
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user