[jBPM] New message: "How to query for executions in a particular activity"
by Peter Swartwout
User development,
A new message was posted in the thread "How to query for executions in a particular activity":
http://community.jboss.org/message/527067#527067
Author : Peter Swartwout
Profile : http://community.jboss.org/people/spincycle
Message:
--------------------------------------------------------------
Hi, I'm very new to jBPM - just running the examples and writing my own unit tests to help me learn it. I have 4.3.
I'm playing with the Query API now, and I can see an easy way to get a list of all process instances by process id. For each of these, I can find which activity is currently active. But I don't see a convenient way to obtain a list of all process instances with an execution in a particular activity. Am I missing something?
For example:
LoanRequest -> Evaluate -> WireMoney -> End
I want a list of all process instances that are in the "Evaluate" activity and no other activity.
Thanks!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527067#527067
16 years, 4 months
[JBoss Tools] New message: "Re: JEE 6"
by Fabricio Lemos
User development,
A new message was posted in the thread "JEE 6":
http://community.jboss.org/message/527059#527059
Author : Fabricio Lemos
Profile : http://community.jboss.org/people/fabricio.lemos
Message:
--------------------------------------------------------------
Ok, thank you Maxim. I voted and will be watching this FR.
> Any other features which whould you like to see in JBoss Tools?
I would like JEE 6 projects created with JBTools could run smoothly on Glassfish. For example, Maven Integration for Seam projects is great, but requires a lot of changes on pom.xml dependencies to run on Glassfish and also we need to do a lot of manual work like declaring the EJBs at web.xml.
I know that your target server is Jboss AS, but I think with JEE 6 standardizing some core technologies, it will be easier to add support for more servers.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527059#527059
16 years, 4 months
[jBPM] New message: "Re: [jBPM 4.2] - Move the process to previous steps in a workflow"
by Mike Burton
User development,
A new message was posted in the thread "[jBPM 4.2] - Move the process to previous steps in a workflow":
http://community.jboss.org/message/527054#527054
Author : Mike Burton
Profile : http://community.jboss.org/people/mike_burton
Message:
--------------------------------------------------------------
Hi Sebastian
Thanks for you reply.
Yes this is a valid business use case. Here is my usecase in our application.
Employee fills the sales invoice electronic form and sends for Sales manager approval before sending it to customer.
Sales manager reviews the invoice form and can send it back to employee for any updates (for revision). All this process
is automated with jBPM workflow. In this use case when manager submits back the form to the employee, i should
be able to move the process again back to employee step in workflow which is a valid business use case.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527054#527054
16 years, 4 months
[JBoss Portal QA] New message: "Re: How to configure the default portal page in jboss portal server"
by Peter Johnson
User development,
A new message was posted in the thread "How to configure the default portal page in jboss portal server":
http://community.jboss.org/message/527044#527044
Author : Peter Johnson
Profile : http://community.jboss.org/people/peterj
Message:
--------------------------------------------------------------
Let me see if I understand this correctly. When you forst navigate to the page that contains your porlet, the portlet is in "normal" display mode (it occupies the page along with several other portlets). But after you submit some data to your portlet, when the page refreshes the portlet is maximized (it appears on the page by itself an occupies the entire page). Is this correct? If so then the only way I can think of for this to happen is if the portlet code indicated that the portlat was to be maximized.
By the way, this is the wrong forum - this is for the Portal QA Team's usage. Perhaps some forum administrator would be kind enough to move this post to the JBoss Portal forum.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527044#527044
16 years, 4 months
[JBoss Web Services] New message: "How to throw faults for reliable messaging web services (WS-RM)?"
by Oliver Xu
User development,
A new message was posted in the thread "How to throw faults for reliable messaging web services (WS-RM)?":
http://community.jboss.org/message/527041#527041
Author : Oliver Xu
Profile : http://community.jboss.org/people/yqxu
Message:
--------------------------------------------------------------
Hi, I’m currently building a *reliable messaging* (WS-RM) web service. I want to return to the client a soap fault with customized messages when an exception occurs.
Most of the documents online describe what a fault look like in the soap message but not on how it is implemented. Below is a snippet of what I have so far. I can get the TestFault to return without using reliable messaging, but once RM is turned on, I have no luck of getting the TestFault.
@WebMethod
(action="echoAction")
public String echo(@WebParam(name="word") String word) throws TestFault{ String response =
"Hello "+word;
if (word.equals("fault"))
throw new TestFault("It worked!");
return response;}
@WebFault
public
class TestFault extends Exception{
private static final long serialVersionUID = 6118892030155347089L;
public TestFault(String message) {
super(message); }
}
Below is the fault I got when RM is turned on:
<
env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<faultcode>env:Server</faultcode>
<faultstring>RM handler have not serialized WS-RM message to the payload</faultstring>
</env:Fault>
Can someone please give me some pointers or code examples on how faults can be thrown properly once WS-RM is enabled? Thanks in advance.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527041#527041
16 years, 4 months
[JBoss Microcontainer Development] New message: "Re: AnnotatedElementMetaDataLoader component metadata optimization"
by Kabir Khan
User development,
A new message was posted in the thread "AnnotatedElementMetaDataLoader component metadata optimization":
http://community.jboss.org/message/527038#527038
Author : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
I have gone back to making AEMDL.getCMDR() return null if there are no annotations. It is the fastest way, and is the least affected by caching. To preserve backwards compatibility and to not have to change any tests, I have added this fix to make MetaDataRetrievalToMetaDataBridge always return something even if there is no component metadata:
public MetaData getComponentMetaData(Signature signature)
{
MetaDataRetrieval component = retrieval.getComponentMetaDataRetrieval(signature);
if (component == null)
//return null;
return NullComponentMetaData.INSTANCE;
return new MetaDataRetrievalToMetaDataBridge(component);
}
...
private static class NullComponentMetaData implements MetaData
{
final static NullComponentMetaData INSTANCE = new NullComponentMetaData();
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
{
return null;
}
public Annotation[] getAnnotations()
{
return MetaData.NO_ANNOTATIONS;
}
public Annotation[] getAnnotationsAnnotatedWith(Class<? extends Annotation> meta)
{
return MetaData.NO_ANNOTATIONS;
}
public MetaData getComponentMetaData(Signature signature)
{
return null;
}
public Annotation[] getLocalAnnotations()
{
return MetaData.NO_ANNOTATIONS;
}
public Object[] getLocalMetaData()
{
return MetaData.NO_METADATA;
}
public <T> T getMetaData(Class<T> type)
{
return null;
}
public Object[] getMetaData()
{
return MetaData.NO_METADATA;
}
public Object getMetaData(String name)
{
return null;
}
public <T> T getMetaData(String name, Class<T> type)
{
return null;
}
public MetaData getScopeMetaData(ScopeLevel level)
{
return null;
}
public long getValidTime()
{
return 0;
}
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
{
return false;
}
public boolean isEmpty()
{
return true;
}
public boolean isMetaDataPresent(Class<?> type)
{
return false;
}
public boolean isMetaDataPresent(String name)
{
return false;
}
public boolean isMetaDataPresent(String name, Class<?> type)
{
return false;
}
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527038#527038
16 years, 4 months
[jBPM] New message: "Finding current process instanceid from within jpdl"
by apurv agnihotri
User development,
A new message was posted in the thread "Finding current process instanceid from within jpdl":
http://community.jboss.org/message/527034#527034
Author : apurv agnihotri
Profile : http://community.jboss.org/people/apurv888
Message:
--------------------------------------------------------------
Hi All,
I have a requirement wherein if some conditions are not satisfied i need to send the current process instance id to a java method(using java activity) which maintains all such process instance ids and waits for an event to occur .As and when that event occurs i want the execution to restart for all such waiting process instance id.
I understand that I can set the variable as following
+ProcessInstance processInstance = executionService.startProcessInstanceByKey("instancename",variables);
executionService.setVariable(processInstance.getId(), "xxx", processInstance.getId());+
+but i need to set the "xxx" variable before i start the process instance(but at that time no pid is available ,as process is yet to start)+
+*Is there any way that i can get the current process instance id in the jpdl.xml itself during runtime?*+
TIA,
Aurv
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527034#527034
16 years, 5 months
[jBPM] New message: "Cannot Retrieve Tasks of a User"
by Eren Aykin
User development,
A new message was posted in the thread "Cannot Retrieve Tasks of a User":
http://community.jboss.org/message/527033#527033
Author : Eren Aykin
Profile : http://community.jboss.org/people/erenay
Message:
--------------------------------------------------------------
Hi All,
I have just started working with jbpm and I have a problem with retrieving tasks for a user.
in my process.jpdl.xml I have:
My hibernate configuration is:
In my JUnit test, I am doing:
public class MainAppTest extends JbpmTestCase {
...
private void setupManagers() { String dept = identityService.createGroup("Managers");
identityService.createUser("johndoe", "John", "Doe"); identityService.createMembership("johndoe", dept, "Manager");
}
private void setupReportees() { String dept = identityService.createGroup("Reportees");
identityService.createUser("reportee1", "Reportee1", "A"); identityService.createMembership("reportee1", dept, "Reportee");
identityService.createUser("reportee2", "Reportee2", "B"); identityService.createMembership("reportee2", dept, "Reportee"); }
protected void tearDown() throws Exception { ...
}
@Test public void testMainApp() { ProcessInstance processInstance = executionService .startProcessInstanceByKey("Initialapp"); pid = processInstance.getId(); }
@Test public void testBothReporteeTasksCompletedWithApproval() {
List taskList3 = taskService.findGroupTasks("reportee1");
assertEquals(1, taskList1.size());
assertEquals(1, taskList3.size());
... }
}
I am expecting to receive the tasks defined at process.jpdl.xml into the lists but they are not read and the lists are empty.
Also, while debugging, I see that the JBPM4_TASK database
Can you tell what am I doing wrong?
Thanks in advance.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527033#527033
16 years, 5 months