[jBPM] New message: "Re: Terminate the task"
by Shilpa Kumar
User development,
A new message was posted in the thread "Terminate the task":
http://community.jboss.org/message/519743#519743
Author : Shilpa Kumar
Profile : http://community.jboss.org/people/Shilpa.Kumar
Message:
--------------------------------------------------------------
My use case is very simple. My process is started, and User1 has been assigned and Sub-Process is also started in parallel which also has some task assigned. I want to terminate all the current active activities which are spawned. I want to take the transition back based on business requirement. This should happen at runtime, because the activity where I want to take back will be decided at runtime. Basically I am looking for a reflow of the process.
Hope I am able to explain this. Suggestions given by Santanu can be achieved at design time, which is not my requirement. And the comments given by you are wise, but since this is my POC so I am less concern of method names and convention.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519743#519743
16 years, 3 months
[JNDI and Naming] New message: "JNDI Problem:Connection closed with LDAP After some period of time"
by divya s
User development,
A new message was posted in the thread "JNDI Problem:Connection closed with LDAP After some period of time":
http://community.jboss.org/message/519738#519738
Author : divya s
Profile : http://community.jboss.org/people/divya_09
Message:
--------------------------------------------------------------
Hi,
I am facing the problem with JNDI.I have made the connection with LDAP Server using JNDI.It's working fine.But after some period of time ,the connection get lost .
AND THIS IS THE ERROR LOG:
javax.naming.CommunicationException: connection closed [Root exception is java.io.IOException: connection closed]; remaining name 'uid=SuperAdmin,ou=admin,ou=SouthZone,dc=bsnl,dc=co,dc=in'
2010-01-13 10:28:03,953 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1961)
2010-01-13 10:28:03,953 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
2010-01-13 10:28:03,953 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
2010-01-13 10:28:03,953 ERROR [STDERR] at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
2010-01-13 10:28:03,953 ERROR [STDERR] at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
2010-01-13 10:28:03,953 ERROR [STDERR] at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
2010-01-13 10:28:03,953 ERROR [STDERR] at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
2010-01-13 10:28:03,953 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
2010-01-13 10:28:03,953 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-01-13 10:28:03,953 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.jboss.naming.ExternalContext$CachedContext.invoke(ExternalContext.java:558)
2010-01-13 10:28:03,953 ERROR [STDERR] at $Proxy261.search(Unknown Source)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.jsp.BSNLApp.jsp.AppList_jsp._jspService(AppList_jsp.java:205)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
2010-01-13 10:28:03,953 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
2010-01-13 10:28:03,953 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2010-01-13 10:28:03,953 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2010-01-13 10:28:03,968 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2010-01-13 10:28:03,968 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2010-01-13 10:28:03,968 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
2010-01-13 10:28:03,968 ERROR [STDERR] at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
2010-01-13 10:28:03,968 ERROR [STDERR] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
2010-01-13 10:28:03,968 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2010-01-13 10:28:03,968 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
2010-01-13 10:28:03,968 ERROR [STDERR] Caused by: java.io.IOException: connection closed
2010-01-13 10:28:03,968 ERROR [STDERR] at com.sun.jndi.ldap.LdapClient.ensureOpen(LdapClient.java:1558)
2010-01-13 10:28:03,968 ERROR [STDERR] at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:504)
2010-01-13 10:28:03,968 ERROR [STDERR] at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1944)
I have attached jboss-service.xml file in wich i have added a section for LDAP Bind.
I have to resolve this issue as earliest.
Plz Help me.
Thanks & Regards,
Divya.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519738#519738
16 years, 3 months
[jBPM] New message: "Re: Terminate the task"
by Santanu Saraswati
User development,
A new message was posted in the thread "Terminate the task":
http://community.jboss.org/message/519725#519725
Author : Santanu Saraswati
Profile : http://community.jboss.org/people/saraswati.santanu
Message:
--------------------------------------------------------------
If you have already arrived at the task then it does not really make sense to cancel the job.
You can do the first approach you have mentioned in your post. However the code snippet looks complex and I could not make out what are you trying to achieve. This, I thought, can be implemented easily. Let us have a sample flow like this:
+*<process name="ForumFlow" xmlns="http://jbpm.org/4.0/jpdl">
<start name="start1" g="189,20,48,48">
<transition name="to state1" to="state1" g="-49,-18"/>
</start>
<state name="state1" g="176,116,92,52">
<transition name="to task1" to="task1" g="305,205:-44,-18"/>
</state>
<task name="task1" g="182,252,92,52">
<transition name="success" to="end1" g="-42,-18"/>
<transition name="cancel" to="state1" g="131,216:-49,-18"/>
</task>
<end name="end1" g="215,361,48,48"/>
</process>*+
At the task if you execute when you want to cancel the task you will land you want on cancellation
+*taskService.completeTask(taskId, "cancel")*+
However, you can provide your usecase as Ronald suggested. Then we can give more relevent code samples.
Two comments on the flow you uploaded:
1. I dont think Fork without join make much sense.
2. Java method name follow camel case convention with the first letter in small. Method names like "SysActivityMet" looks a bit odd.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519725#519725
16 years, 3 months
[JBoss AOP] New message: "Usage of pre-defined JBoss AOP security library."
by MK Song
User development,
A new message was posted in the thread "Usage of pre-defined JBoss AOP security library.":
http://community.jboss.org/message/519721#519721
Author : MK Song
Profile : http://community.jboss.org/people/mksong
Message:
--------------------------------------------------------------
Hello, I would like to ask a question about the usage of pre-defined JBoss AOP security library.
To test it, I wrote a source code which includes a pre-defined annotation and a user-defined annotation: Permissions and Roles.
However, I got run-time-error attached. And I also attached the project-zip-file.
package bank;
import org.jboss.aspects.security.Permissions;
import org.jboss.aspects.security.SecurityDomain;;
*@SecurityDomain ("other")*
public class BankAccount
{
int accountNumber;
int balance;
public int getAccountNumber() {
return accountNumber;
}
public int getBalance() {
return balance;
}
*@Permissions ({"AuthorizedUser"}) // org.jboss.aspects.security.Permissions*
public void setAccountNumber(int accountNumber) {
System.out.println("*** [success] : setAccountNumber");
this.accountNumber = accountNumber;
}
*@Roles(roles= {"admin"}) // bank.Roles*
public void setBalance(int balance) {
System.out.println("*** [success] : setBalance");
this.balance = balance;
}
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519721#519721
16 years, 3 months