/** * Get the current entity's context. * * @return the context, never null */ public Context getCurrentEntityContext() { return findContextForEntity(getCurrentEntity()); }
/** * {@inheritDoc} */ @Override protected Object doInvoke(Context context) throws Exception { Object result = super.doInvoke(context); if (log.isDebugEnabled()) { log.debug("Returning from the execution of the current scenario: " + context.getCurrentEntity().getResource().getName()); } context.getCurrentEntityContext().setReturning(true); return result; }
/** * Get the current entity's context. * * @return the context, never null */ public Context getCurrentEntityContext() { return findContextForEntity(getCurrentEntity()); }
/** * {@inheritDoc} */ @Override protected Object doInvoke(Context context) throws Exception { Object result = super.doInvoke(context); if (log.isDebugEnabled()) { log.debug("Returning from the execution of the current scenario: " + context.getCurrentEntity().getResource().getName()); } context.getCurrentEntityContext().setReturning(true); return result; }
/** * Get the current paxml resource. * * @return the resource */ public static PaxmlResource getCurrentyResource() { return Context.getCurrentContext().getCurrentEntity().getResource(); }
/** * Get the current paxml resource. * * @return the resource */ public static PaxmlResource getCurrentyResource() { return Context.getCurrentContext().getCurrentEntity().getResource(); }
final String entity = context.getProcessId() + "-" + context.getCurrentEntity().getResource().getName(); final String fn = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss_SSS").format(new Date()); File dir = new File(snapshotFolder);
final String entity = context.getProcessId() + "-" + context.getCurrentEntity().getResource().getName(); final String fn = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss_SSS").format(new Date()); File dir = new File(snapshotFolder);