PM Engine ignoring parameters passed from workflow/business service
Preventive Maintenance Engine(PM component) ignoring the end date parameter passed from workflow.The problem seen is that the End Date is not being passed to the component.below mentioned is the script used
function Service_PreInvokeMethod(MethodName, Inputs, Outputs)
{
if(MethodName == "InvokeEngine")
{
var svc = TheApplication().GetService("Server Requests");
var input = TheApplication().NewPropertySet();
var child = TheApplication().NewPropertySet();
var output = TheApplication().NewPropertySet();
input.SetProperty("Component", "FSPrevMnt");
input.SetProperty("Mode", "Async");
child.SetProperty("Mode", "Id");
child.SetProperty("Sub-mode", "Plans");
child.SetProperty("Plan ID", "1-4ZLV2");
child.SetProperty("EndDT", "2013-02-20");
input.AddChild(child);
svc.InvokeMethod("SubmitRequest",input,output);
return(CancelOperation);
}
return(ContinueOperation);