throw new JobExecutionException("Error Executing local job", (e.getRootCause() != null) ? e.getRootCause() : e, true);
throw new JobExecutionException("Error Executing local job", (e.getRootCause() != null) ? (Exception) e.getRootCause() : e, true);
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {        JobDataMap data = jobExecutionContext.getJobDetail().getJobDataMap();        long id = data.getLong("entryId");        int triggerId = data.getInt("triggerId");        String username = data.getString("username");        Workflow wf = new BasicWorkflow(username);        try {            wf.executeTriggerFunction(id, triggerId);        } catch (WorkflowException e) {            throw new JobExecutionException("Error Executing local job", (e.getRootCause() != null) ? e.getRootCause() : e, true);        }    }