[jBPM] - Can GroupId in an Human Task be mapped to a process variable like ActorId?
by jemmerling
jemmerling [https://community.jboss.org/people/jemmerling] created the discussion
"Can GroupId in an Human Task be mapped to a process variable like ActorId?"
To view the discussion, visit: https://community.jboss.org/message/648979#648979
--------------------------------------------------------------
This has come up in another thread, however I think it merits a separate discussion:
So far I have successfully assigned the ActorId for a human task from a process variable i.e. if I use an expression like #{actorVar} in my BPMN to specify ActorId this seems to work as expected.
What I would like to know is whether GroupId can be specified the same way, or can it only be specified statically? For example #{groupVar}.
I tried this and unlike ActorId it doesn't seem to work (not sure how better to state this).
>From looking at the underlying BPMN2 model, I can see a great difference in what the Business Process Editor does with the ActorId defined as an expression as compared to when an expression is used to define the GroupId (despite appearing quite similar in the editor). It's possible the "problem" (if that is what it is) is due to how the editor converts the expression to BPMN2 rather that to the design of jBPM5.
As I am currently in an evaluation phase, it might be more important for me to know whether this is supposed to work, because if it doesn't but can be considered a defect, then I can anticipate that it will work in the forseeable future. Whereas if this is not an advertised feature of jBPM5 then I should no longer contemplate this as a viable solution.
If anybody who reads this has successfully used an expression to map a Human Task's GroupId to a process variable, could you please provide an example?
Thanks very much!
--JE
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648979#648979]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[JBoss Tools] - Getting Started with JBoss Developer Studio 5.0.M5 and JBoss Central - It's Not Just a Welcome Screen
by Len DiMaggio
Len DiMaggio [https://community.jboss.org/people/ldimaggio] modified the blog post:
"Getting Started with JBoss Developer Studio 5.0.M5 and JBoss Central - It's Not Just a Welcome Screen"
To view the blog post, visit: https://community.jboss.org/community/tools/blog/2012/01/27/getting-start...
--------------------------------------------------------------
One of the great advantages of working with open source software is the freedom of choice that it provides you. You aren't locked in by vendors or arcane licenses, you can choose the combinations of components that you want to work with. In doing so, however, you will likely have to invest time and effort in integrating these components to work together. Accomplishing these integration tasks can be difficult.
But, luckily, with JBoss Developer Studio, this integration work is already done for you. In JBoss Developer Studio, you have access to a rich JEE development environment that leverages JBoss technologies. JBoss Developer Studio provides graphical editors, integrations with source control systems, and the ability to configure servers and deploy applications to them, all from inside an eclipse-based environment.
In the past, managing all these integrations required you to use multiple tools and actions. You could, however, do all these tasks without shutting down or leaving JBoss Developer Studio. That’s an important point to keep in mind as one of the goals of an IDE is to provide you with an environment in which you can perform development without having to exit the IDE to perform other common tasks such as staying up-to-date with new developments affecting the software with which you are working.
What was missing was a single utility to help you to access and stay up-to-date with JBoss technologies, news, examples and manage the specific plugins that you choose to install and use with JBoss Developer Studio.
The recent M5 ("milestone 5") build for JBoss Developer Studio 5 includes an answer to this problem: JBoss Central.
(Note: This post is written from a Developer Studio perspective. JBoss Central, however, is also included in JBoss Tools.)
By default, JBoss Central is the first view that is displayed when you open JBoss Developer Studio. (OK, it’s really the second, after you get past a welcome view that has only one option - JBoss Central). But, JBoss Central is more than a welcome screen, it is a full featured "center of gravity" to assist you in both getting started with JBoss Developer Studio and in continuing and expanding your use of JBoss Developer Studio.
How is JBoss Central different from a welcome screen? In three important ways:
* First, JBoss Central is dynamic, not static. You can receive updated news and blog content automatically through JBoss Central. In addition to informational content changes, new quickstart examples, and new wizards to create applications are pushed to you without you having to manually update or reconfigure JBoss Developer Studio.
* Second, JBoss Central is active, not passive. JBoss Central can perform administrative tasks for you such as resolving dependencies and installing necessary plugins and runtimes.
* And third, unlike a welcome screen that you might only use once and then discard, JBoss Central is a destination. It’s a place that you will return to frequently as you use JBoss Developer Studio to develop, debug, deploy, and test your applications.
Let’s take a quick tour of JBoss Central. JBoss Central is divided into two tabs: Getting Started and Software/Update
The Getting Started tab looks like this:
https://lh3.googleusercontent.com/iwD9-JXqXhVxx0JmlOvj4pik0N2-BFCi3faOhPB... https://lh3.googleusercontent.com/iwD9-JXqXhVxx0JmlOvj4pik0N2-BFCi3faOhPB...
and includes these options:
* Create Projects - These wizards walk you through creating new projects.
* Project Examples - The “quickstarts” are fully functioning applications. The goals of the quickstarts are to both illustrate technologies and features, and to provide you with working code that you can expand on to build your own applications.
* Settings - These control how JBoss Central itself functions. Right now, there’s only one option here; whether JBoss Central is shown at startup.
* News - This is a feature that can save you some time, as it enables you to access news from within JBDS and not have to access an external news reader.
* Blogs - This serves as a good compliment to the News feature in that the combination of the information from these features can keep you up-to-date on new developments related to JBoss projects and technologies.
The other tab, Software/Update, looks like this:
https://lh3.googleusercontent.com/nAFsrYUjaytTwHx3obFfLzCuC-jvhffXcdvjbQb... https://lh3.googleusercontent.com/nAFsrYUjaytTwHx3obFfLzCuC-jvhffXcdvjbQb...
As its name implies, Software/Update enables you to install features into JBoss Developer Studio and then update them. By default, JBoss Developer Studio, is configured to enable you to install and update features for source control, testing, and web development. It’s worth noting that while Eclipse does already include features to install software and keep it up-to-date, Software/Update is a more visual and easier to use.
Now, let’s take a more detailed look at one way JBoss Central is more than a welcome screen. We’ll start by installing one of the quickstarts. We’ll use the simplest quickstart, helloworld:
https://lh6.googleusercontent.com/DOM0wVUomNmsPmoTGRlSU9jsYF-Z2SBj6OPsLGO... https://lh6.googleusercontent.com/DOM0wVUomNmsPmoTGRlSU9jsYF-Z2SBj6OPsLGO...
And, here’s where JBoss Central becomes an active helper, and not a passive bystander. Instead of failing to install the quickstart because of the lack of an installed server runtime, JBoss Central determines which runtime is missing, and will download and install it for us. Note that these quickstarts illustrate features suported by JBoss’ new AS7 server (http://www.jboss.org/as7).
So, let’s be lazy and let JBoss Central downlaod and install the server for us:
https://lh6.googleusercontent.com/7UaQcaMc8yRxRsUWAhB1QZmv-G9I2wrMmOxqeBF... https://lh6.googleusercontent.com/7UaQcaMc8yRxRsUWAhB1QZmv-G9I2wrMmOxqeBF...
Now, it’s a simple matter to deploy and run the quickstart:
https://lh5.googleusercontent.com/yUiuGrzpKSDEmAMvHqk4JSShmOPq4RtCMETjwnd... https://lh5.googleusercontent.com/yUiuGrzpKSDEmAMvHqk4JSShmOPq4RtCMETjwnd...
We’ll do it through Maven:
https://lh5.googleusercontent.com/eQPkE6cWtE033n1r9JWP84MEkPBUvnpQDE61kGC... https://lh5.googleusercontent.com/eQPkE6cWtE033n1r9JWP84MEkPBUvnpQDE61kGC...
Once the quickstart is installed, we start the server, deploy the quickstart, and, in the tradition of all helloworld applications, here’s the minimalist output:
https://lh6.googleusercontent.com/Rd-cJ7LNGjYwuFzzEgCEM5tkmUFbIw4TsrHYbwa... https://lh6.googleusercontent.com/Rd-cJ7LNGjYwuFzzEgCEM5tkmUFbIw4TsrHYbwa...
To sum it up, while it’s still a work in progress, JBoss Central is more than a welcome screen or an “on-ramp,” it’s an active and dynamic center of gravity for JBoss Developer Studio and a place that you will want to return to again and again as you use JBoss Developer Studio.
References:
http://docs.jboss.org/tools/whatsnew/central/central-news-1.0.0.M4.html http://docs.jboss.org/tools/whatsnew/central/central-news-1.0.0.M4.html
https://community.jboss.org/docs/DOC-17371 https://community.jboss.org/wiki/EasyPluginInstallationFromJBossCentral
https://community.jboss.org/community/tools/blog/2011/12/18/learn-java-ee...
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/community/tools/blog/2012/01/27/getting-start...]
12 years, 11 months
[JBoss Tools] - Getting Started with JBoss Developer Studio 5.0.M5 and JBoss Central - It's Not Just a Welcome Screen
by Len DiMaggio
Len DiMaggio [https://community.jboss.org/people/ldimaggio] created the blog post:
"Getting Started with JBoss Developer Studio 5.0.M5 and JBoss Central - It's Not Just a Welcome Screen"
To view the blog post, visit: https://community.jboss.org/community/tools/blog/2012/01/27/getting-start...
--------------------------------------------------------------
One of the great advantages of working with open source software is the freedom of choice that it provides you. You aren't locked in by vendors or arcane licenses, you can choose the combinations of components that you want to work with. In doing so, however, you will likely have to invest time and effort in integrating these components to work together. Accomplishing these integration tasks can be difficult.
But, luckily, with JBoss Developer Studio, this integration work is already done for you. In JBoss Developer Studio, you have access to a rich JEE development environment that leverages JBoss technologies. JBoss Developer Studio provides graphical editors, integrations with source control systems, and the ability to configure servers and deploy applications to them, all from inside an eclipse-based environment.
In the past, managing all these integrations required you to use multiple tools and actions. You could, however, do all these tasks without shutting down or leaving JBoss Developer Studio. That’s an important point to keep in mind as one of the goals of an IDE is to provide you with an environment in which you can perform development without having to exit the IDE to perform other common tasks such as staying up-to-date with new developments affecting the software with which you are working.
What was missing was a single utility to help you to access and stay up-to-date with JBoss technologies, news, examples and manage the specific plugins that you choose to install and use with JBoss Developer Studio.
The recent M5 ("milestone 5") build for JBoss Developer Studio 5 includes an answer to this problem: JBoss Central.
(Note: This post is written from a Developer Studio perspective. JBoss Central, however, is also included in JBoss Tools.)
By default, JBoss Central is the first view that is displayed when you open JBoss Developer Studio. (OK, it’s really the second, after you get past a welcome view that has only one option - JBoss Central). But, JBoss Central is more than a welcome screen, it is a full featured "center of gravity" to assist you in both getting started with JBoss Developer Studio and in continuing and expanding your use of JBoss Developer Studio.
How is JBoss Central different from a welcome screen? In three important ways:
* First, JBoss Central is dynamic, not static. You can receive updated news and blog content automatically through JBoss Central. In addition to informational content changes, new quickstart examples, and new wizards to create applications are pushed to you without you having to manually update or reconfigure JBoss Developer Studio.
* Second, JBoss Central is active, not passive. JBoss Central can perform administrative tasks for you such as resolving dependencies and installing necessary plugins and runtimes.
* And third, unlike a welcome screen that you might only use once and then discard, JBoss Central is a destination. It’s a place that you will return to frequently as you use JBoss Developer Studio to develop, debug, deploy, and test your applications.
Let’s take a quick tour of JBoss Central. JBoss Central is divided into two tabs: Getting Started and Software/Update
The Getting Started tab looks like this:
https://lh3.googleusercontent.com/iwD9-JXqXhVxx0JmlOvj4pik0N2-BFCi3faOhPB... https://lh3.googleusercontent.com/iwD9-JXqXhVxx0JmlOvj4pik0N2-BFCi3faOhPB...
and includes these options:
* Create Projects - These wizards walk you through creating new projects.
* Project Examples - The “quickstarts” are fully functioning applications. The goals of the quickstarts are to both illustrate technologies and features, and to provide you with working code that you can expand on to build your own applications.
* Settings - These control how JBoss Central itself functions. Right now, there’s only one option here; whether JBoss Central is shown at startup.
* News - This is a feature that can save you some time, as it enables you to access news from within JBDS and not have to access an external news reader.
* Blogs - This serves as a good compliment to the News feature in that the combination of the information from these features can keep you up-to-date on new developments related to JBoss projects and technologies.
The other tab, Software/Update, looks like this:
https://lh3.googleusercontent.com/nAFsrYUjaytTwHx3obFfLzCuC-jvhffXcdvjbQb... https://lh3.googleusercontent.com/nAFsrYUjaytTwHx3obFfLzCuC-jvhffXcdvjbQb...
As its name implies, Software/Update enables you to install features into JBoss Developer Studio and then update them. By default, JBoss Developer Studio, is configured to enable you to install and update features for source control, testing, and web development. It’s worth noting that while Eclipse does already include features to install software and keep it up-to-date, Software/Update is a more visual and easier to use.
Now, let’s take a more detailed look at one way JBoss Central is more than a welcome screen. We’ll start by installing one of the quickstarts. We’ll use the simplest quickstart, helloworld:
https://lh6.googleusercontent.com/DOM0wVUomNmsPmoTGRlSU9jsYF-Z2SBj6OPsLGO... https://lh6.googleusercontent.com/DOM0wVUomNmsPmoTGRlSU9jsYF-Z2SBj6OPsLGO...
And, here’s where JBoss Central becomes an active helper, and not a passive bystander. Instead of failing to install the quickstart because of the lack of an installed server runtime, JBoss Central determines which runtime is missing, and will download and install it for us. Note that these quickstarts illustrate features suported by JBoss’ new AS7 server (http://www.jboss.org/as7).
So, let’s be lazy and let JBoss Central downlaod and install the server for us:
https://lh6.googleusercontent.com/7UaQcaMc8yRxRsUWAhB1QZmv-G9I2wrMmOxqeBF... https://lh6.googleusercontent.com/7UaQcaMc8yRxRsUWAhB1QZmv-G9I2wrMmOxqeBF...
Now, it’s a simple matter to deploy and run the quickstart:
https://lh5.googleusercontent.com/yUiuGrzpKSDEmAMvHqk4JSShmOPq4RtCMETjwnd... https://lh5.googleusercontent.com/yUiuGrzpKSDEmAMvHqk4JSShmOPq4RtCMETjwnd...
We’ll do it through Maven:
https://lh5.googleusercontent.com/eQPkE6cWtE033n1r9JWP84MEkPBUvnpQDE61kGC... https://lh5.googleusercontent.com/eQPkE6cWtE033n1r9JWP84MEkPBUvnpQDE61kGC...
Once the quickstart is installed, we start the server, deploy the quickstart, and, in the tradition of all helloworld applications, here’s the minimalist output:
https://lh6.googleusercontent.com/Rd-cJ7LNGjYwuFzzEgCEM5tkmUFbIw4TsrHYbwa... https://lh6.googleusercontent.com/Rd-cJ7LNGjYwuFzzEgCEM5tkmUFbIw4TsrHYbwa...
To sum it up, while it’s still a work in progress, JBoss Central is more than a welcome screen or an “on-ramp,” it’s an active and dynamic center of gravity for JBoss Developer Studio and a place that you will want to return to again and again as you use JBoss Developer Studio.
References:
http://docs.jboss.org/tools/whatsnew/central/central-news-1.0.0.M4.html http://docs.jboss.org/tools/whatsnew/central/central-news-1.0.0.M4.html
https://community.jboss.org/docs/DOC-17371 https://community.jboss.org/wiki/EasyPluginInstallationFromJBossCentral
https://community.jboss.org/people/snjeza/blog/2011/12/18/learn-java-ee-6... https://community.jboss.org/people/snjeza/blog/2011/12/18/learn-java-ee-6...
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/community/tools/blog/2012/01/27/getting-start...]
12 years, 11 months
[jBPM] - Mina Human Task Server and close connections - don't refresh the session
by gardellajp
gardellajp [https://community.jboss.org/people/gardellajp] created the discussion
"Mina Human Task Server and close connections - don't refresh the session"
To view the discussion, visit: https://community.jboss.org/message/648214#648214
--------------------------------------------------------------
Hi folks,
I have a problem and I don't found a good solution to this. The problem is that I complete a task and the session didn't refresh becouse the handler and the session is dispose. See the next code:
<< CODE>>>
TaskClient client = obtainATaskClient();
client.getTask(taskId,handler);
Task task = handler.getTask();
//obtain the session
int sessionId = task.getTaskData().getProcessSessionId();
StatefulKnowledgeSession session = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId,knowledgeBase, null, envoriment);
CommandBasedWSHumanTaskHandler handler = new CommandBasedWSHumanTaskHandler(session);
session.getWorkItemManager().registerWorkItemHandler("Human Task",handler);
handler.connect();
//complete the task
client.complete(taskId, userId, outputData, responseHandler);
isDone = responseHandler.waitTillDone(time);
// -- Close resources --
handler.dispose();
session.dispose();
<<< END CODE >>>>
I can fix with if I put this line after the comment // -- Close resources --:
Thread.sleep(500);
When I put this, Mina server communicate with the handler and refresh the session. Is a very poor workaround.
I try cache the session and close after some time, but if I use this approach have problems that said WorkItemInfo doesn't exists, becouse the handler delete complete human task.
So my question is:
How can I close the session only after the handler refresh it?
Thanks,
Juan
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648214#648214]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[JBoss Microcontainer] - How does jboss-structure.xml's moditification attribute influence classpath in JBoss 5.1?
by Piotr Findeisen
Piotr Findeisen [https://community.jboss.org/people/findepi] created the discussion
"How does jboss-structure.xml's moditification attribute influence classpath in JBoss 5.1?"
To view the discussion, visit: https://community.jboss.org/message/648842#648842
--------------------------------------------------------------
Hi All,
I am trying to deploy on JBoss 5.1 an application that correctly deploys and runs on JBoss 4.2.3.
Appart from obvious class loading configuration issues (we use parent-last policy, so the configuration must be altered, i.e. jboss-classloading.xml had to be created) I'm having trouble with class path scanning.
The problem is: I am unable to persuade JBoss 5.1 to unpack EAR into tmp dir +and+ have classpath reference the unpacked files. Without this, i cannot create JarInputStream to read all files. I know about Snowdrop, but Snowdrop solves the problem in Spring and here the class path scanning is +not+ done by Spring, it is done by application code.
Project structure:
my.ear
- my.jar
- com.example.Some.class
- my.war
[...]
When i do something like classLoader.getResources("com.example") it returns something like
vfszip:/opt/jboss5/server/default/deploy/my.ear/my.jar/com/example/
What i would like to get is something like below, so that i can locate and read the jar by myself:
jar:/opt/jboss5/server/default/tmp/deploy/e3y2872343-my.ear/my.jar!com/example/
Is it somehow possible?
Thanks,
Piotr
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648842#648842]
Start a new discussion in JBoss Microcontainer at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months