public Object getValue(VariableScope variableScope, BaseDelegateExecution contextExecution) { return getValue(variableScope); }
public Object getValue(VariableScope variableScope, BaseDelegateExecution contextExecution) { return getValue(variableScope); }
public Object getValue(VariableScope variableScope, BaseDelegateExecution contextExecution) { return getValue(variableScope); }
public void notify(DelegateExecution execution) throws Exception { ExecutionEntity executionCasted = ((ExecutionEntity)execution); String parameterValue = null; if (parameter != null) { parameterValue = (String)parameter.getValue(execution); } String activityName = null; if (executionCasted.getActivity() != null) { activityName = executionCasted.getActivity().getProperties().get(new PropertyKey<String>("name")); } recordedEvents.add( new RecordedEvent( executionCasted.getActivityId(), activityName, execution.getEventName(), parameterValue, execution.getActivityInstanceId(), execution.getCurrentTransitionId(), execution.isCanceled(), execution.getId())); }
@Override public void execute(DelegateExecution context) throws Exception { String traceId = context.getProcessBusinessKey(); String eventNameString = null; if (eventName!=null && eventName.getValue(context)!=null) { eventNameString = (String) eventName.getValue(context); } else { // if not configured we use the element id from the flow definition as default eventNameString = context.getCurrentActivityId(); } messageSender.send(new Message<String>( // eventNameString, // traceId, // null)); // no payload at the moment }
public void notify(DelegateExecution execution) throws Exception { ExecutionEntity executionCasted = ((ExecutionEntity)execution); String parameterValue = null; if (parameter != null) { parameterValue = (String)parameter.getValue(execution); } String activityName = null; if (executionCasted.getActivity() != null) { activityName = executionCasted.getActivity().getProperties().get(new PropertyKey<String>("name")); } recordedEvents.add( new RecordedEvent( executionCasted.getActivityId(), activityName, execution.getEventName(), parameterValue, execution.getActivityInstanceId(), execution.getCurrentTransitionId(), execution.isCanceled(), execution.getId())); }