protected internal virtual void applyInputParameters <T1>(ActivityExecution execution, ConnectorRequest <T1> request) { if (ioMapping != null) { // create variable scope for input parameters ConnectorVariableScope connectorInputVariableScope = new ConnectorVariableScope((AbstractVariableScope)execution); // execute the connector input parameters ioMapping.executeInputParameters(connectorInputVariableScope); // write the local variables to the request. connectorInputVariableScope.writeToRequest(request); } }
protected internal virtual void applyOutputParameters(ActivityExecution execution, ConnectorResponse response) { if (ioMapping != null) { // create variable scope for output parameters ConnectorVariableScope connectorOutputVariableScope = new ConnectorVariableScope((AbstractVariableScope)execution); // read parameters from response connectorOutputVariableScope.readFromResponse(response); // map variables to parent scope. ioMapping.executeOutputParameters(connectorOutputVariableScope); } }