Hi Pavan,
Thank you for your great response. The tool u have suggested is for updating ruleset, But I need to update the .rules file as you said in your post. I have done the XAMLActivation as the response given by Tom Lake for your post. Like the following
objIDMServiceParameters.Add( "wsCredentialsInput", requestDetails)
objIDMServiceParameters.Add( "wsAction", action)
AddHandler workflowRuntime.WorkflowCompleted, AddressOf WorkflowRuntime_WorkflowCompleted
AddHandler workflowRuntime.WorkflowTerminated, AddressOf WorkflowRuntime_WorkflowTerminated
objxomlReader = New XmlTextReader(System.Web.HttpContext.Current.Server.MapPath("IDMUpdateCredentials.xoml"))
objruleReader = New XmlTextReader(System.Web.HttpContext.Current.Server.MapPath("IDMUpdateCredentials.rules"))
instance = workflowRuntime.CreateWorkflow(objxomlReader, objruleReader, objIDMServiceParameters)
instance.Start()
objSchedulerService = workflowRuntime.GetService( Of ManualWorkflowSchedulerService)()
objSchedulerService.RunWorkflow(instance.InstanceId)
WaitHandle.WaitOne()
The Declarative Rule Condition in my Workflow is this.validPassword == 1, this might be changed later like this.validPassword != -1.
I want to update the above condition in .rules file. Help me with sample code please.
Thank you
Satya
satya vani |