void setListeners(FlowExecutionListener[] listeners) { this.listeners = new FlowExecutionListeners(listeners); }
/** * Create a new flow execution executing the provided flow. Flow executions are normally created by a flow execution * factory. * @param flow the root flow of this flow execution */ public FlowExecutionImpl(Flow flow) { Assert.notNull(flow, "The flow definition is required"); this.flow = flow; status = FlowExecutionStatus.NOT_STARTED; listeners = new FlowExecutionListeners(); attributes = CollectionUtils.EMPTY_ATTRIBUTE_MAP; flowSessions = new LinkedList<>(); conversationScope = new LocalAttributeMap<>(); conversationScope.put(FLASH_SCOPE_ATTRIBUTE, new LocalAttributeMap<>()); }
void setListeners(FlowExecutionListener[] listeners) { this.listeners = new FlowExecutionListeners(listeners); }
void setListeners(FlowExecutionListener[] listeners) { this.listeners = new FlowExecutionListeners(listeners); }
/** * Create a new flow execution executing the provided flow. * @param flow the root flow of this flow execution * @param listeners the listeners interested in flow execution lifecycle events * @param attributes flow execution system attributes */ public FlowExecutionImpl(Flow flow, FlowExecutionListener[] listeners, AttributeMap attributes) { setFlow(flow); this.flowSessions = new LinkedList(); this.listeners = new FlowExecutionListeners(listeners); this.attributes = (attributes != null ? attributes : CollectionUtils.EMPTY_ATTRIBUTE_MAP); this.conversationScope = new LocalAttributeMap(); if (logger.isDebugEnabled()) { logger.debug("Created new execution of flow '" + flow.getId() + "'"); } }
/** * Create a new flow execution executing the provided flow. Flow executions are normally created by a flow execution * factory. * @param flow the root flow of this flow execution */ public FlowExecutionImpl(Flow flow) { Assert.notNull(flow, "The flow definition is required"); this.flow = flow; status = FlowExecutionStatus.NOT_STARTED; listeners = new FlowExecutionListeners(); attributes = CollectionUtils.EMPTY_ATTRIBUTE_MAP; flowSessions = new LinkedList<>(); conversationScope = new LocalAttributeMap<>(); conversationScope.put(FLASH_SCOPE_ATTRIBUTE, new LocalAttributeMap<>()); }
/** * Create a new flow execution executing the provided flow. Flow executions are normally created by a flow execution * factory. * @param flow the root flow of this flow execution */ public FlowExecutionImpl(Flow flow) { Assert.notNull(flow, "The flow definition is required"); this.flow = flow; this.listeners = new FlowExecutionListeners(); this.attributes = CollectionUtils.EMPTY_ATTRIBUTE_MAP; this.flowSessions = new LinkedList(); this.conversationScope = new LocalAttributeMap(); this.conversationScope.put(FLASH_SCOPE_ATTRIBUTE, new LocalAttributeMap()); }
impl.setListeners(new FlowExecutionListeners(executionListenerLoader.getListeners(flow))); impl.setAttributes(executionAttributes); return flowExecution;