[Design of JBoss Portal] - Re: Roadmap: jBPM integration.
by yxyang
"challa" wrote : Hi,
|
| I started working on the above and was able to develop a jbpm portlet that accessed the user and role information from the portal data store.
| I have written an expression specific to the portal user modes and an assignment handler that replaced the existing jbpm identity assignment process. The assignment uses existing portal session to fetch the user data. I think this satisfies what you mentioned as requirments for jbpm integration.
|
| I am currently working on coverting the jbpm websale webapp to a portlet as a demo portlet application. But I think your use case should be simple to implement.
|
| Any comments are welcome.
Hello,
what is the status of the "assignment uses existing portal session to fetch the user data" ?
Can i get the source code ?
thanks
yang
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963461#3963461
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963461
19 years, 8 months
[Design of JBoss jBPM] - Started: jBPM WS frontend
by kukeltje
The past weekend (it is monday now, although only an hour) I
- Thought myself some jbossws things (Meaning it will ONLY be compatible with jboss 4.0.4-GA with jbossws-1.0.2.GA)
- Created a ws folder in jBPM cvs-head (only locally now)
- Set it up accoring to other jbpm folders.
- Learned (more then I ever want(ed) to know) about the jbpm build scripts (needs some tuning!!!!! including the eclipse .project file)
- added some libs to the paths
- Made some big mistakes (Why isn't it possible to instantiate this class... hmmmm.... after 3 hours I found out it was an interface :-( )
So now I have a clean environment to start implementing a ws frontend to jBPM in the following order:
1: startProcess(name) and startProcess(name,version)
2: signalToken(pid, transitionName)
3: endTask(pid, varHashMap) and endTask(pid, varHashMap, transitionName)
4: getTaskList(actorId)
- .....(suggestions)
1 and 2 will be finished this week, 3 and 4 a week later, but... since it is such a learning curve, it lacks testcases and will untill two weeks after I return from holiday (the first two weeks of september in Brazil)
Major questions:
- document/rpc type?
- JSR109 compliant?
- Other stacks?? (two on a system does not work and AXIS has more installed base on other appservers) JBossWS needs promotion...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963451#3963451
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963451
19 years, 8 months
[Design of JBoss jBPM] - signalling the processs with newly created token instance
by maheshraj_4u
Hi
i created an instance of token and trying to signal the process with the newly created token here i associated the newly created token with the process instance. here im not using the root token for signalling. so im trying to save the data in the tables.when i tried to get the root token id it gave as 408 and the token id of the newly created token as 0. is this procedure correct. can ny body help me out
here is the code
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import org.jbpm.JbpmConfiguration;
import org.jbpm.JbpmContext;
import org.jbpm.graph.exe.ProcessInstance;
import org.jbpm.graph.exe.Token;
public class CreateDuplicateToken {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
JbpmConfiguration jbpmConfiguration = null;
JbpmContext jbpmContext = null;
try {
jbpmConfiguration = JbpmConfiguration.parseInputStream(new FileInputStream("src/config.files/jbpm.cfg.xml"));
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
jbpmContext = jbpmConfiguration.createJbpmContext();
System.out.println("Create Duplicate Token:");
System.out.print("Enter the ProcessInstance ID: ");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
long processInstanceID = 0 ;
try {
processInstanceID = Long.parseLong(br.readLine());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
ProcessInstance processInstance = jbpmContext.loadProcessInstanceForUpdate(processInstanceID);
Token rootToken = processInstance.getRootToken();
Token duplicateToken = new Token();
duplicateToken.setProcessInstance(procesInstance);
duplicateToken.setNode(rootToken.getNode());
System.out.println("Root TokenID: "+rootToken.getId());
System.out.println("Duplicate TokenID: "+duplicateToken.getId());
System.out.println("ProcessInstance of Duplicate: "+duplicateToken.getProcessInstance().getId());
jbpmContext.save(duplicateToken);
duplicateToken.signal();
jbpmContext.save(duplicateToken);
jbpmContext.close();
}
}
here is the exception
org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:171)
at org.jbpm.svc.Services.close(Services.java:211)
at org.jbpm.JbpmContext.close(JbpmContext.java:141)
at com.westpac.nzlo.tempjbpm.CreateDuplicateToken.main(CreateDuplicateToken.java:66)
Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.jbpm.graph.exe.Token
at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:216)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:108)
at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:221)
at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:476)
at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:2803)
at org.hibernate.event.def.DefaultFlushEntityEventListener.dirtyCheck(DefaultFlushEntityEventListener.java:467)
at org.hibernate.event.def.DefaultFlushEntityEventListener.isUpdateNecessary(DefaultFlushEntityEventListener.java:190)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:113)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:980)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:353)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:161)
... 3 more
18:06:33,500 [main] ERROR Services : problem closing service 'persistence'
org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:171)
at org.jbpm.svc.Services.close(Services.java:211)
at org.jbpm.JbpmContext.close(JbpmContext.java:141)
at com.westpac.nzlo.tempjbpm.CreateDuplicateToken.main(CreateDuplicateToken.java:66)
Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.jbpm.graph.exe.Token
at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:216)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:108)
at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:221)
at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:476)
at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:2803)
at org.hibernate.event.def.DefaultFlushEntityEventListener.dirtyCheck(DefaultFlushEntityEventListener.java:467)
at org.hibernate.event.def.DefaultFlushEntityEventListener.isUpdateNecessary(DefaultFlushEntityEventListener.java:190)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:113)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:980)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:353)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:161)
... 3 more
org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session}
at org.jbpm.svc.Services.close(Services.java:223)
at org.jbpm.JbpmContext.close(JbpmContext.java:141)
at com.westpac.nzlo.tempjbpm.CreateDuplicateToken.main(CreateDuplicateToken.java:66)
Caused by: org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:171)
at org.jbpm.svc.Services.close(Services.java:211)
... 2 more
Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.jbpm.graph.exe.Token
at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:216)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:108)
at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:221)
at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:476)
at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:2803)
at org.hibernate.event.def.DefaultFlushEntityEventListener.dirtyCheck(DefaultFlushEntityEventListener.java:467)
at org.hibernate.event.def.DefaultFlushEntityEventListener.isUpdateNecessary(DefaultFlushEntityEventListener.java:190)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:113)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:980)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:353)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:161)
... 3 more
thnx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963424#3963424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963424
19 years, 8 months
[Design of JBoss Collaboration Server] - Help with Install on Windows XP
by m_veloso
Hi,
I'm trying to install JBMS in Windows XP.
- Install direct from site
- Generate datasource Hypersonic (DefaultDS)
- In "Server Name Configuration"
. Local Domain#1 = mydomain
. Server Name = smtp.mydomain
. Server Bind = 0.0.0.0
. Postmaster = postmaster@mydomain
- Put in "DNS Configuration" the dns servers of "mydomain" registered in zoneedit.com site
- In "SMTP Relaying" check "Allow.." and put 4 frequently used domain (like hotmail.com, gmail.com).
- In "SMTP Service" accept all default options but "Verify Identity"
- In "SMTP Route" all blanck
After installation I can connect using Outlook Express and send email, but i can't receive any one, even when I send to me. I can connect to pop and smtp servers from outside my intranet using telnet, it's mean that my servers are accessible, but it can receive or send email from any domains i have tested.
In command window of run.bat I can see the message error:
Unable to deliver message to local user: myuser@mydomain. Unknown user.
myuser is a Windows Administrator user.
What I miss? :(
Appreciate your help.
Thank's
Marcus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963409#3963409
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963409
19 years, 8 months