예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public Void call() throws Exception
            public override Void call()
            {
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: org.camunda.connect.spi.ConnectorRequest<?> request = connectorInstance.createRequest();
                ConnectorRequest <object> request = outerInstance.connectorInstance.createRequest();

                outerInstance.applyInputParameters(execution, request);
                // execute the request and obtain a response:
                ConnectorResponse response = request.execute();

                outerInstance.applyOutputParameters(execution, response);
                outerInstance.leave(execution);
                return(null);
            }
예제 #2
0
 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);
     }
 }