05-21-2012 06:53 PM
public void notify(DelegateExecution execution) throws Exception {
[…]
String taskId = execution.getId();
List<FormProperty> formProperties = ProcessEngines.getDefaultProcessEngine().getFormService()
.getTaskFormData(taskId).getFormProperties();
[…]
}
05-22-2012 12:50 PM
05-23-2012 06:00 AM
05-23-2012 06:17 AM
05-23-2012 07:44 AM
execution.getId() will return the execution Id "not task id"
05-23-2012 08:54 AM
05-23-2012 10:38 AM
05-23-2012 11:54 AM
public class PerDiemButtonFiller implements TaskListener{
public PerDiemButtonFiller(){
super();
}
public void notify(DelegateTask delegateTask) {
ActivitiUserPerDiem activitiUserPerDiem = (ActivitiUserPerDiem)
delegateTask.getVariable("activitiUserPerDiem");
ActivitiNationalPerDiem activitiNationalPerDiem = (ActivitiNationalPerDiem)
delegateTask.getVariable("activitiNationalPerDiem");
ActivitiForeignPerDiem activitiForeignPerDiem = (ActivitiForeignPerDiem)
delegateTask.getVariable("activitiForeignPerDiem");
ActivitiLocomotion activitiLocomotion = (ActivitiLocomotion)
delegateTask.getVariable("activitiLocomotion");
String taskId = delegateTask.getId();
List<FormProperty> formProperties = ProcessEngines.getDefaultProcessEngine().getFormService()
.getTaskFormData(taskId).getFormProperties();
Iterator<FormProperty> it = formProperties.iterator();
while(it.hasNext()){
FormProperty formP = it.next();
if(formP.getId() == "id_button"){
PerDiemButtonFormPropertyRenderer obj = (PerDiemButtonFormPropertyRenderer) formP;
obj.setUserPerDiemVariable(activitiUserPerDiem);
obj.setNationalPerDiemVariable(activitiNationalPerDiem);
obj.setForeignPerDiemVariable(activitiForeignPerDiem);
obj.setLocomotionVariable(activitiLocomotion);
}
}
}
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.