Beispiel #1
0
        private PowerShellResults <JsonDictionary <object> > Execute(string workflow, Identity[] identities, DDIParameters properties)
        {
            WSDataHandler wsdataHandler = new WSSingleObjectDataHandler(this.schemaFilesInstallPath, this.schema, workflow);

            this.RaiseWSDataHandlerCreatedEvent(wsdataHandler);
            if (identities != null)
            {
                wsdataHandler.InputIdentity(identities);
            }
            wsdataHandler.OutputVariableWorkflow = "GetList";
            wsdataHandler.DataObjectStore.SetModifiedColumns(this.InitializeDDIParameters(wsdataHandler, properties));
            return(wsdataHandler.Execute());
        }
Beispiel #2
0
        private PowerShellResults <JsonDictionary <object> > Get(string workflow, Identity identity)
        {
            string        workflowName  = string.IsNullOrEmpty(workflow) ? "GetObject" : workflow;
            WSDataHandler wsdataHandler = new WSSingleObjectDataHandler(this.schemaFilesInstallPath, this.schema, workflowName);

            this.RaiseWSDataHandlerCreatedEvent(wsdataHandler);
            if (identity != null)
            {
                wsdataHandler.InputIdentity(new Identity[]
                {
                    identity
                });
            }
            return(wsdataHandler.Execute());
        }