private Map<String, Object> doBeforeEnterFlow(FacesContext context, Flow flow, FlowCallNode outboundCallNode) { Map<String, Object> outboundParameters = null; if (outboundCallNode != null && !outboundCallNode.getOutboundParameters().isEmpty()) { outboundParameters = new HashMap<String, Object>(); for (Map.Entry<String, Parameter> entry : outboundCallNode.getOutboundParameters().entrySet()) { Parameter parameter = entry.getValue(); if (parameter.getValue() != null) { outboundParameters.put(entry.getKey(), parameter.getValue().getValue(context.getELContext())); } } } return outboundParameters; }
private void assignInboundParameters(FacesContext context, Flow calledFlow, Map<String, Object> evaluatedParams) { // Now the new flow is active, it's time to evaluate the inbound // parameters. if (null != evaluatedParams) { Map<String, Parameter> inboundParameters = calledFlow.getInboundParameters(); ELContext elContext = context.getELContext(); String curName; ValueExpression toSet; for (Map.Entry<String, Object> curOutbound : evaluatedParams.entrySet()) { curName = curOutbound.getKey(); assert(inboundParameters.containsKey(curName)); toSet = inboundParameters.get(curName).getValue(); toSet.setValue(elContext, curOutbound.getValue()); } } }
public FlowCallNodeImpl(String id, String calledFlowDocumentId, String calledFlowId, List<Parameter> outboundParametersFromConfig) { FacesContext context = FacesContext.getCurrentInstance(); this.id = id; if (null != calledFlowDocumentId) { this.calledFlowDocumentIdVE = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), calledFlowDocumentId, String.class); } else { this.calledFlowDocumentIdVE = null; } if (null != calledFlowId) { this.calledFlowIdVE = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), calledFlowId, String.class); } else { this.calledFlowIdVE = null; } _outboundParameters = new ConcurrentHashMap<String, Parameter>(); if (null != outboundParametersFromConfig) { for (Parameter cur : outboundParametersFromConfig) { _outboundParameters.put(cur.getName(), cur); } } outboundParameters = Collections.unmodifiableMap(_outboundParameters); }
private void assignInboundParameters(FacesContext context, Flow calledFlow, Map<String, Object> evaluatedParams) { // Now the new flow is active, it's time to evaluate the inbound // parameters. if (null != evaluatedParams) { Map<String, Parameter> inboundParameters = calledFlow.getInboundParameters(); ELContext elContext = context.getELContext(); String curName; ValueExpression toSet; for (Map.Entry<String, Object> curOutbound : evaluatedParams.entrySet()) { curName = curOutbound.getKey(); assert(inboundParameters.containsKey(curName)); toSet = inboundParameters.get(curName).getValue(); toSet.setValue(elContext, curOutbound.getValue()); } } }
private void assignInboundParameters(FacesContext context, Flow calledFlow, Map<String, Object> evaluatedParams) { // Now the new flow is active, it's time to evaluate the inbound // parameters. if (null != evaluatedParams) { Map<String, Parameter> inboundParameters = calledFlow.getInboundParameters(); ELContext elContext = context.getELContext(); String curName; ValueExpression toSet; for (Map.Entry<String, Object> curOutbound : evaluatedParams.entrySet()) { curName = curOutbound.getKey(); assert(inboundParameters.containsKey(curName)); toSet = inboundParameters.get(curName).getValue(); toSet.setValue(elContext, curOutbound.getValue()); } } }
private void assignInboundParameters(FacesContext context, Flow calledFlow, Map<String, Object> evaluatedParams) { // Now the new flow is active, it's time to evaluate the inbound // parameters. if (null != evaluatedParams) { Map<String, Parameter> inboundParameters = calledFlow.getInboundParameters(); ELContext elContext = context.getELContext(); String curName; ValueExpression toSet; for (Map.Entry<String, Object> curOutbound : evaluatedParams.entrySet()) { curName = curOutbound.getKey(); assert(inboundParameters.containsKey(curName)); toSet = inboundParameters.get(curName).getValue(); toSet.setValue(elContext, curOutbound.getValue()); } } }
private void doAfterEnterFlow(FacesContext context, Flow flow, Map<String, Object> outboundParameters) { getFacesFlowProvider(context).doAfterEnterFlow(context, flow); if (outboundParameters != null) { for (Map.Entry<String, Parameter> entry : flow.getInboundParameters().entrySet()) { Parameter parameter = entry.getValue(); if (parameter.getValue() != null && outboundParameters.containsKey(entry.getKey())) { parameter.getValue().setValue(context.getELContext(), outboundParameters.get(entry.getKey())); } } } if (flow.getInitializer() != null) { flow.getInitializer().invoke(context.getELContext(), null); } }
public FlowCallNodeImpl(String id, String calledFlowDocumentId, String calledFlowId, List<Parameter> outboundParametersFromConfig) { FacesContext context = FacesContext.getCurrentInstance(); this.id = id; if (null != calledFlowDocumentId) { this.calledFlowDocumentIdVE = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), calledFlowDocumentId, String.class); } else { this.calledFlowDocumentIdVE = null; } if (null != calledFlowId) { this.calledFlowIdVE = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), calledFlowId, String.class); } else { this.calledFlowIdVE = null; } _outboundParameters = new ConcurrentHashMap<>(); if (null != outboundParametersFromConfig) { for (Parameter cur : outboundParametersFromConfig) { _outboundParameters.put(cur.getName(), cur); } } outboundParameters = Collections.unmodifiableMap(_outboundParameters); }
evaluatedParams.put(curName, curOutbound.getValue().getValue().getValue(elContext));
public FlowCallNodeImpl(String id, String calledFlowDocumentId, String calledFlowId, List<Parameter> outboundParametersFromConfig) { FacesContext context = FacesContext.getCurrentInstance(); this.id = id; if (null != calledFlowDocumentId) { this.calledFlowDocumentIdVE = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), calledFlowDocumentId, String.class); } else { this.calledFlowDocumentIdVE = null; } if (null != calledFlowId) { this.calledFlowIdVE = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), calledFlowId, String.class); } else { this.calledFlowIdVE = null; } _outboundParameters = new ConcurrentHashMap<>(); if (null != outboundParametersFromConfig) { for (Parameter cur : outboundParametersFromConfig) { _outboundParameters.put(cur.getName(), cur); } } outboundParameters = Collections.unmodifiableMap(_outboundParameters); }
evaluatedParams.put(curName, curOutbound.getValue().getValue().getValue(elContext));
public FlowCallNodeImpl(String id, String calledFlowDocumentId, String calledFlowId, List<Parameter> outboundParametersFromConfig) { FacesContext context = FacesContext.getCurrentInstance(); this.id = id; if (null != calledFlowDocumentId) { this.calledFlowDocumentIdVE = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), calledFlowDocumentId, String.class); } else { this.calledFlowDocumentIdVE = null; } if (null != calledFlowId) { this.calledFlowIdVE = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), calledFlowId, String.class); } else { this.calledFlowIdVE = null; } _outboundParameters = new ConcurrentHashMap<>(); if (null != outboundParametersFromConfig) { for (Parameter cur : outboundParametersFromConfig) { _outboundParameters.put(cur.getName(), cur); } } outboundParameters = Collections.unmodifiableMap(_outboundParameters); }
evaluatedParams.put(curName, curOutbound.getValue().getValue().getValue(elContext));
evaluatedParams.put(curName, curOutbound.getValue().getValue().getValue(elContext));
ELContext elContext = context.getELContext(); for (Parameter cur : paramList) { params[i++] = cur.getValue().getValue(elContext);