Automating "Generate Reporting Relationship" on the Position applet

To Automate "Generate Reporting Relationship" on the Position applet, you could :

1. Create the script as a Siebel business service.
2. Create a workflow process that calls this business service.
3. Schedule this workflow process to run at the interval you desire, by using Siebel's Repeating Component Request feature with the component "Workflow Process Manager".

function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
var busobj;
var buscomp;

busobj = TheApplication().GetBusObject("Assignment");
buscomp = busobj.GetBusComp("Assignment Group");
buscomp.InvokeMethod("Release");

return (CancelOperation);
}

Note:Work flow Process Manager (Server Request) Business Service instead. This would fire the workflow process which runs on wfprocmgr component. This will then take the SADMIN username to invoke.

(OR)

Business Service script below:

function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{

try
{

var AsgnBO = TheApplication().GetBusObject("Assignment");
var AsgnBC = AsgnBO.GetBusComp("Assignment Group");
AsgnBC..InvokeMethod("Release");
}
catch (e)
{
Outputs.SetProperty("Error Message", e.toString())
}

finally
{
AsgnBC = null;
AsgnBO = null;
}

return (CancelOperation);
}