Facing Issue In Getting Instance Data
by gs.naidu@tcs.com
Dear Sir,
Actually I have developed one workflow using
jbpm .In that workflow i have a user task .After completion of the user
task i wrote the code on
onexitaction of usertask .In that code i will update the data that was
inserted by user to db .Here I need to send a number( Ex:Patient Id) to
user.
I have tried in the following way.
kcontext.setVariable("genPatId","1234");
The problem is i have downloaded the code for console server and iam
changing the FormProcessingFacade.java file .The Problem iam facing is how
to
get the genPatId in FormProcessingFacade.java file.
SUCCESSFULLY_PROCESSED_INPUT :i need to append the patiet id that was
generated on onexitaction of usertask to this string.
Map dataMap = getProcessManagement().getInstanceData("68");
System.out.println("dataMap.patientName"+(String)dataMap.get(
"patientName"));
System.out.println("dataMap.patientId"+(String)dataMap.get("genPatId"
));
return Response.ok(SUCCESSFULLY_PROCESSED_INPUT).build();
iam getting genPatId as null value..
Please help me in knowing how to get the data that we will set on
onexitactions in FormProcessingFacade.java of consoleserver code.
Thanks&Regards,
G. Suresh Naidu
Tata Consultancy Services
Cell:- 8019844574
Mailto: gs.naidu(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
12 years, 4 months
Simplifying Oryx Designer using resolution of global variable and parameter mapping at runtime
by Jean-Jacques Borie
Hello,
I want to simplify Oryx designer in order to don't have to map every
variables with input/output of task.
I want to remove the need of declaring global variable and the mapping with
parameter of task.
When you have lots of workflow, it's start to be very annoying.
I'm thinking of moving this declaration of mapping to do it at runtime.
Like having a spring configuration file to declare all variables needed for
a series of workflow.
And next do the mapping of variable by IOC with work item or something like
that.
I want to keep the scope variable between process and work item.
I want to make easier the work of people doing the workflow in order to
give the tool for non developer.
Any idea ?
Thanks
Jean-Jacques Borie
12 years, 4 months
Regarding service task
by hari krishna
Hi,
i am trying to export my own service task,so that it can be used by
others.But i am unable to do so,can any one help me.
T
12 years, 4 months
Maven archetypes for jBPM
by Maciej Swiderski
Hi guys,
we have discussed that for quite some time so maybe we could gather
various thoughts, ideas on how to proceed. Just to start the discussion
I have following in mind:
- archetype to create domain specific services - already created but
could require some modification as I think there where some changes in
format that work item was defined (not mvel any more??)
- archetype to create test application - very useful in diagnosing
problems reported by community or when writing blogs, how to's so could
be easily downloaded and executed on readers environment
- archetype that integrates jbpm with spring
- archetype for web applications, there could be several flavors:
* archetype for spring MVC web application
* archetype for regular web application (servlets, jsp)??
There could be different options when generating project based on the
archetypes that should cover:
- JPA version selection (JPA 1 (hibernate 3.x) or JPA2 (hibernate 4.x))
- different data base configuration - we could prepare persistence.xml
files for supported data bases
- human task configuration (local or transport based and properly
configure ht work item handlers for selected ht config)
- ....
Anything that we should have for human task to be exposed as remote service?
And discussion is on...
Maciej
12 years, 4 months
jBPM Development forum
by Tihomir Surdilovic
https://community.jboss.org/en/jbpm/dev?view=discussions
Having a separate Development forum from the main one kind of sucks IMO
because very often I do not click on the "jBPM Development" link. What's
the point of having two? There is no clear separation of questions anyways.
So is there a way to close the Development forum? I think this would be
much better for our users as I have a feeling the ones posting to the
Development forum don't get the same "love" as posters of the main forum.
WDYT?
12 years, 5 months
new blog post about processes and rules integration
by Mauricio Salatino
Hi guys,
I've post a new article about the process and rules integrations.
I'm extremely open to discuss if this is the right way of exposing this
topics. I've found that when people doesn't understand this topics they end
up with very complicated architectural problems.
The main idea behind these posts is to clarify from the functional behavior
what kind of things can be done, in order to:
1) Gather feedback about new features that can be introduced to facilitate
the adoption of certain patterns
2) Classify in different patterns the functional requirements to then
explain which architecture fits better, or what kind of things the users
needs to be have in mind to define their own architecture.
http://blog.athico.com/2012/07/processes-rules-or-rules-processes-3x.html
After this post a set of patterns will be described and then a set of
architectural posts will go out. At this point feedback from the other
developers is crucial :)
Cheers
--
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
12 years, 5 months
Task object with stale data
by Marcelo Zabalet
Hey.
I'm working on a long-term government project for the implementation of
BPM. We are building an application with jBPM to expose BPM to other
projects as a service. I'll be working with this for a while.
Well, going to the point, the problem I have now is an object "Task" with
stale data when I try to do a CompleteTask operation.
To set the context: this project is based on
<parent>
<groupId>org.drools</groupId>
<artifactId>droolsjbpm-parent</artifactId>
<version>5.4.0.Final</version>
</parent>
using, at the moment, a local strategy for the Human Task Service (not
Mina, nor MQ) accesing the service with this class:
org.jboss.bpm.console.server.integration.TaskManagement.
By completing a task from here: TaskManagement.completeTask (taskId, data,
user ID), I found the symptom of losing the assignment of task vars to the
process. I don't know what exactly the problem is, but trying to solve the
problem, I realized that here:
SyncWSHumanTaskHandler.handleCompletedTask(taskId) {
Task task = client.getTask(taskId);
...
if (task.getTaskData().getStatus() == Status.Completed)) {
...
}
the system ends up with a Task object with stale data. In the database, the
task at hand has a Completed status, but in this case, the Task object has
an InProgress status. So, the if-condition evaluates to false, never
executing the corresponding block where lies the vars assigment stuff.
Here is a copy of the stack at the three moments where the completeTask
operation acquires a Task object from the database (or the persistence
context).
This acquires a task and marks it as InProgress
TaskServiceSession.getTask(long) line: 527
TaskServiceSession.taskOperation(Operation, long, String, String,
ContentData, List<String>) line: 406
LocalTaskService.start(long, String) line: 276
TaskManagement.completeTask(long, Map, String) line: 95
This acquires a task and marks it as Completed. I checked at this point and
is the same Task Object (I mean same java Obect in memory), so far so good.
TaskServiceSession.getTask(long) line: 527
TaskServiceSession.taskOperation(Operation, long, String, String,
ContentData, List<String>) line: 406
LocalTaskService.complete(long, String, ContentData) line: 80
TaskManagement.completeTask(long, Map, String) line: 113
This acquires a Task for the work-item stuff.
This is where the problem lies. The Task object is a diferent one from the
previous ones and has stale data, so the status is InProgress.
I think there is a conflict with the Entity Managers here...
TaskServiceSession.getTask(long) line: 527
LocalTaskService.getTask(long) line: 165
SyncWSHumanTaskHandler$TaskCompletedHandler.handleCompletedTask(long)
line: 345
SyncWSHumanTaskHandler$TaskCompletedHandler$1.run() line: 333
Thread.run() line: 662
Obviously, the best answer is how I fix this to get it working ASAP :)
Talking seriously, I will apreciate any tip or clue to help me focus in the
right direction. Maybe I'm wrong from the root. Some of the questions that
arise:
I see that I'm using (indirectly)
org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler that is marked as
@Deprecated.
Why is it deprecated or what should I use instead?
I choose a local strategy, is still contemplated or will be removed and no
one is thinking on local in favor of Mina, queues, or something else?
Thanks in advance.
Marcelo.
12 years, 5 months