[jBPM] - understanding taskclient
by Odelya Holiday
Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion
"understanding taskclient"
To view the discussion, visit: http://community.jboss.org/message/581352#581352
--------------------------------------------------------------
I understood that in order to run HumanTask I have to register an handler. for example:
StatefulKnowledgeSession session = session.getWorkItemManager().registerWorkItemHandler("Human Task", new CommandBasedWSHumanTaskHandler());
I looked in the implementation of the class and realized that CommandBasedWSHumanTaskHandler in connect() method connects to port 9123 and starts a client task.
However, I saw in some examples, that I need to initialize this task:
TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1",new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
client.connect("127.0.0.1", 9123);
When do I have to invoke this TaskClient manually?
Who kills the task so it wouldn't sit on the same port with other tasks?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/581352#581352]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
Re: [jboss-user] [jBPM] - Human Task Problem
by candy_633
candy_633 [http://community.jboss.org/people/candy_633] commented on the document
"Human Task Problem"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16508#comment-5460
--------------------------------------------------
Hello, Juan,
Thank you so much for replying! I just download the human-task-problem.zip and tried to import this project. But it seems that I can not do it. Is the maven file and dependencies are included in pom.xml file? Sorry that I am beginner of JBPM and not quite familiar with maven file. Could you please attach your testing project?
I appreicate your help so much :)
Best Regards,
Shanshan
--------------------------------------------------
15 years, 1 month
[jBPM] - Re: JBPM 4.0 in Web Application
by Anand Prakash
Anand Prakash [http://community.jboss.org/people/anandintouch] created the discussion
"Re: JBPM 4.0 in Web Application"
To view the discussion, visit: http://community.jboss.org/message/570145#570145
--------------------------------------------------------------
Hi Deepak,
Did you get your answer about creating sample web application and using JBPM4 in it?
I'm using user doc from jboss jbpm4 and able to run jbpm-console application but they have target to create user-webapp in build.xml file under >install
directory and I'm able to build sample user-weapp which creates user-webapp under \jbpm-4.4\install\generated\user-webapp .But not sure how to deploy on jboss5.1.0 and i've noticed that user-webapp folder doesn't have web.xml.So that could be the reason ,it's not deploying on jboss properly.
If you have done this sample user-webapp deployment successfully or any other sample web app using jbpm4 in it then please let me know.
Thanks,
Anand
mailto:anandintouch@gmail.com anandintouch(a)gmail.com
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570145#570145]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[jBPM] - jBPM basic question
by Ilja Kondrush
Ilja Kondrush [http://community.jboss.org/people/theros] created the discussion
"jBPM basic question"
To view the discussion, visit: http://community.jboss.org/message/588854#588854
--------------------------------------------------------------
Hello, everyone!
I have a few simple questions (well..they should be simple enough for people who have some experience working with/understanding jBPM..):
Because i'm really new to jBPM, i'll try to formulate questions correctly (btw.. excuse me for my poor english..)
I'm planning to create some sort of web-portal, where i can create/share business processes, maybe tasks for programmers or other employees. So..
1)Is this possible with Java/jBPM?
2)If it is, can i separate the "viewable" parts of this portal by giving permissions for employees? (for instance, project managaer "A" has his/her own username/password, and, according to some sort of "check" he/she should be able to see/add/update some business processes, while programmer "B" should see only tasks that are given to HIM/HER, or the tasks that currently are "free to take")
3) Is there any way to notificate some participant (employee) on how "thing are going"? (meaning the processes)
4)Are there any good examples on how to use jBPM "in such manner" somewhere? Where should i start learning from?
Any good and answers and advices would be greatly appreciated..
Sincerely,
Ilja Kondrush
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/588854#588854]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[Javassist] - Changing array fields into java.util.concurrent.atomic.AtomicReferenceArray
by Christoph Angerer
Christoph Angerer [http://community.jboss.org/people/chmaruni] created the discussion
"Changing array fields into java.util.concurrent.atomic.AtomicReferenceArray"
To view the discussion, visit: http://community.jboss.org/message/589069#589069
--------------------------------------------------------------
Hi,
I am trying to replace fields of array type into fields of type java.util.concurrent.atomic.AtomicReferenceArray
My approach was like this:
1) change the field type through CtField.setType()
2) redirect reads/writes to arrays to static methods using CodeConverter.replaceArrayAccess(). In the static methods I would call the AtomicReferenceArray.set() and .get() methods.
3) rewrite array new bytecodes to calls to new java.util.concurrent.atomic.AtomicReferenceArray()
Besides several more or less small problems (e.g., I would have to rewrite local arrays and method signatures, too) my biggest problem is in step 3. I was trying inside ExprEditor.edit(NewArray a) something like: a.replace("$_ = new java.util.concurrent.atomic.AtomicReferenceArray(" + dim + ");");
However, this does not work because the javassist bytecode checks the type and sees that AtomicReferenceArray is not an array. Which is true, but since I will rewrite subsequent array accesses, too, I think that should be fine.
So my question(s) is (are): Does anybody have experience with something as intrusive as replacing all arrays in a program with a non-array object and if yes, is there any code out there from which I could learn or which I could use? If not, does anybody have an idea how I could make the third step work without the javassist compiler complaining about the type?
Thanks in advance for your time and effort!
Christoph
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589069#589069]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month