OIM API To Execute/Run Job


  1. package com.oimacademy.scheduleJobs;
  2. import java.util.ArrayList;
  3. import java.util.HashMap;
  4. import java.util.HashSet;
  5. import java.util.Iterator;
  6. import java.util.Set;
  7. import com.oimacademy.connection.Platform;
  8. import oracle.iam.identity.utils.Constants;
  9. import oracle.iam.scheduler.api.SchedulerService;
  10. public class RunJob {
  11.  public static void execute() throws Exception
  12.     {
  13.       Long time = System.currentTimeMillis();
  14.       SchedulerService schedulerService = Platform.getService(SchedulerService.class);
  15.       schedulerService.triggerNow("Disable/Delete User After End Date");       
  16.     }
  17.  public static void main(String[] args) throws Exception{
  18.   execute();
  19.  }
  20. }

No comments:

Post a Comment