To start an existing Oracle WebCenter Interaction job from a remote application, use the IJobManager interface in the Oracle WebCenter Interaction Development Kit (IDK).
To start a portal job, follow the steps below.
Java
public static voidstartJob(IJobManager jobManager, int jobID) { int status = jobManager.startJob(jobID); if(status == LockStatus.UNLOCKED) //LockStatus.UNLOCKED = 0 System.out.println("Job started successfully"); else System.out.println("Job failed to start"); }
.NET (C#)
public static voidStartJob(IJobManager jobManager, int jobID) { int status = jobManager.startJob(jobID); if(status == LockStatus.Unlocked) //LockStatus.Unlocked = 0 Console.WriteLine("Job started successfully"); else Console.WriteLine("Job failed to start"); }
.NET (VB)
Public Shared SubStartJob ByVal jobManager As IJobManager, ByVal jobID As Integer) Dim objectManager As Integer = jobManager.StartJob(jobID) If status = LockStatus.UnlockedThen 'LockStatus.Unlocked = 0 Console.WriteLine "Job started successfully"); Else Console.WriteLine("Job failed to start"); End If End Sub