[JBoss Portal] New message: "Re: How to configure the default portal page in jboss portal server"
by Aiswarya Srinivasan
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/528405#528405
Author : Aiswarya Srinivasan
Profile : http://community.jboss.org/people/Aiswarya
Message:
--------------------------------------------------------------
Hi Peter,
I am trying to enhance User registration module (Adding couple of new fields in the User Registration Module), where i am able to add the fields in *.xhtml file and also i have updated the createuserAction class to get the values from the front end, but i got stuck up with the service file,
where i am unable to add my new field entries in the registerserviceImpl and interface class, please help me in this regard.
where do we have any specific configuration file to add new entries in registration service and also if you can help me with the identityusermnagamenetservice class it woulsd be more helpfull for me.
Thank you.
Thanks,
Aiswarya
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528405#528405
15 years, 10 months
[jBPM] New message: "Re: how to find all processInstance"
by ciccio ciccio
User development,
A new message was posted in the thread "how to find all processInstance":
http://community.jboss.org/message/528399#528399
Author : ciccio ciccio
Profile : http://community.jboss.org/people/ciccioVega
Message:
--------------------------------------------------------------
No, im using jbpm 4.3.
I'm explain my case:
I have a DirectoryListener and on addFile
dm.addDirectoryChangeListener(new DirectoryChangeListener() {
public void directoryChange(DirectoryChangeEvent dce) {
File file = (File)dce.getSource();
if (dce.getType() == DirectoryChangeEvent.FILE_ADDED) {
HashMap<String,String> hashMap = new HashMap<String,String>();
hashMap.put("image_path", file.toString());
executionService.startProcessInstanceByKey("DEMO",hashMap);
System.out.println("added: " + file.toString());
} else if (dce.getType() == DirectoryChangeEvent.FILE_REMOVED) {
System.out.println("removed: " + file.toString());
}
}
});
When a file is added on dir, a new processInstace is started.
Using
List<ProcessInstance> listP = processEngine.get(ExecutionService.class).createProcessInstanceQuery().processInstanceKey("DEMO").list();
and while there are a lot of processInstances, the listP is empty.
I think that i can't use .processInstanceId("") because every process has a own Id (eg DEMO.xxxxxxx)
Any Idea?
TIA
ciccio
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528399#528399
15 years, 10 months
[Javassist] New message: "Re: Remove an interface from a Class"
by Kevin Kilroy
User development,
A new message was posted in the thread "Remove an interface from a Class":
http://community.jboss.org/message/528398#528398
Author : Kevin Kilroy
Profile : http://community.jboss.org/people/kevinkilroy
Message:
--------------------------------------------------------------
Hi,
Could you provide an example please? I'm receiving the following exception:
java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition
With this code:
ClassPool pool = ClassPool.getDefault();
CtClass cc = pool.get("com.northwales.ilm.domain.ContextBarItem");
CtClass[] ifs = cc.getInterfaces();
CtClass[] newIfs = new CtClass[1];
newIfs[0] = ifs[0];
cc.setInterfaces(ifs);
cc.writeFile();
Class newClass = cc.toClass();
ContextBarItem cbi = (ContextBarItem)newClass.newInstance();
Thanks!
Kevin.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528398#528398
15 years, 10 months
[jBPM Development] New message: "Re: jBPM4 History/Log implementation."
by Arul Kalai
User development,
A new message was posted in the thread "jBPM4 History/Log implementation.":
http://community.jboss.org/message/528392#528392
Author : Arul Kalai
Profile : http://community.jboss.org/people/Kalairajan
Message:
--------------------------------------------------------------
Bug !!!
org.jbpm.pvm.internal.history.model.HistoryTaskImpl
Newly created HistoryDetail is not added to the collection of the HistoryTaskImpl(Highlighted).
public void updated(TaskImpl task) {
if ( (assignee==null && task.getAssignee()!=null)
|| (assignee!=null) && (!assignee.equals(task.getAssignee()))
) {
addDetail(new HistoryTaskAssignmentImpl(assignee, task.getAssignee()));
this.assignee = task.getAssignee();
}
if (priority!=task.getPriority()) {
addDetail(new HistoryPriorityUpdateImpl(priority, task.getPriority()));
this.priority = task.getPriority();
}
if ( (duedate==null && task.getDuedate()!=null)
|| (duedate!=null) && (!duedate.equals(task.getDuedate()))
) {
addDetail(new HistoryTaskDuedateUpdateImpl(duedate, task.getDuedate()));
this.duedate = task.getDuedate();
}
}
// details //////////////////////////////////////////////////////////////////
public void addDetail(HistoryDetailImpl detail) {
detail.setHistoryTask(this, nextDetailIndex);
*details.add(detail);*
nextDetailIndex++;
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528392#528392
15 years, 10 months
[jBPM] New message: "couldn't parse jbpm.cfg.xml"
by tamisier laure
User development,
A new message was posted in the thread "couldn't parse jbpm.cfg.xml":
http://community.jboss.org/message/528390#528390
Author : tamisier laure
Profile : http://community.jboss.org/people/lauretamisier
Message:
--------------------------------------------------------------
when I try this :
jbpmConfiguration = JbpmConfiguration.parseResource("jbpm.cfg.xml");
the file is found but it' can''t be parse :
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpm.default.cfg.xml" />
<import resource="jbpm.businesscalendar.cfg.xml" />
<import resource="jbpm.tx.hibernate.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.bpmn.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
</jbpm-configuration>
maybe be i am obliged to add a library or other elements ?
thanks for your help
laure
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528390#528390
15 years, 10 months