225 views

Description

Workflow Context does not start if workflow activity definition is missing,

09/22/16 14:45:26 (464) BEECF85D13062200ED373D62F244B0FD Error running script engine: com.glideapp.workflow.model.ModelRunTimeException: Record not available for wf_element_definition: : com.glideapp.workflow.model.cache.ElementDefinitionCache.getExtendedRecord(ElementDefinitionCache.java:59)
com.glideapp.workflow.model.cache.ElementDefinitionCache.loadWFElementDefinition(ElementDefinitionCache.java:46)
com.glideapp.workflow.model.cache.ElementDefinitionCache.getById(ElementDefinitionCache.java:33)
com.glideapp.workflow.model.pojos.WorkflowActivity.<init>(WorkflowActivity.java:43)
com.glideapp.workflow.model.models.CachedWorkflowModel$ModelPreloader.loadActivities(CachedWorkflowModel.java:127)
com.glideapp.workflow.model.models.CachedWorkflowModel$ModelPreloader.loadEntireModel(CachedWorkflowModel.java:114)
com.glideapp.workflow.model.models.CachedWorkflowModel$ModelPreloader.access$100(CachedWorkflowModel.java:108)
com.glideapp.workflow.model.models.CachedWorkflowModel.<init>(CachedWorkflowModel.java:46)
com.glideapp.workflow.model.models.CachedWorkflowModel.load(CachedWorkflowModel.java:41)
com.glideapp.workflow.model.cache.WorkflowModelFactory.getModel(WorkflowModelFactory.java:38)
com.glideapp.workflow.model.WorkflowPath.<init>(WorkflowPath.java:84)
com.glideapp.workflow.stages.WorkflowStageList.findForwardPath(WorkflowStageList.java:813)
com.glideapp.workflow.stages.WorkflowStageList.getStageFuture(WorkflowStageList.java:786)
com.glideapp.workflow.stages.WorkflowStageList.getStageFuture(WorkflowStageList.java:799)
com.glideapp.workflow.stages.WorkflowStageList.createStageStates(WorkflowStageList.java:173)
com.glideapp.workflow.stages.WorkflowStageList.createStageStates(WorkflowStageList.java:132)
com.glideapp.workflow.engine.ContextCreator.create(ContextCreator.java:75)
com.glideapp.workflow.engine.WorkflowManager.createFlows(WorkflowManager.java:145)
com.glideapp.workflow.engine.WorkflowEngine.runEngine(WorkflowEngine.java:104)
com.glide.policy.AScriptEngine.process(AScriptEngine.java:34)
com.glide.script.ScriptEngines.run(ScriptEngines.java:102)
com.glide.script.GlideRecord.runScriptsAndEngines(GlideRecord.java:1166)
com.glide.script.GlideRecord.updateWithoutResettingOperation(GlideRecord.java:4135)
com.glide.script.GlideRecord.update(GlideRecord.java:4081)
com.glide.script.GlideRecord.jsFunction_update(GlideRecord.java:3892)
sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:637)
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:581)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2574)
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
org.mozilla.javascript.gen._refname__3992._c_script_0(<refname>:2)
org.mozilla.javascript.gen._refname__3992.call(<refname>)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:560)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3439)
org.mozilla.javascript.gen._refname__3992.call(<refname>)
org.mozilla.javascript.gen._refname__3992.exec(<refname>)
com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:236)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:107)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:73)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:64)
com.glide.script.Evaluator.evaluateString(Evaluator.java:91)
com.glide.script.GlideRhinoHelper.evaluateAsString(GlideRhinoHelper.java:130)
com.glide.script.ActionScript.conditionalEval(ActionScript.java:91)
com.glide.script.ActionScript.execute(ActionScript.java:77)
com.glide.script.ActionScriptProcessor.processScript(ActionScriptProcessor.java:134)
com.glide.script.Action.process(Action.java:115)
com.glide.ui.RedirectTransaction.invokeAction(RedirectTransaction.java:421)
com.glide.ui.RedirectTransaction.handleActions(RedirectTransaction.java:388)
com.glide.ui.RedirectTransaction.inboundActions(RedirectTransaction.java:224)
com.glide.ui.RedirectTransaction.process(RedirectTransaction.java:93)
com.glide.ui.GlideServletUITransaction.process(GlideServletUITransaction.java:74)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:412)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:187)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:165)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:49)
com.glide.sys.ServletTransaction.run(ServletTransaction.java:34)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)

Steps to Reproduce

 

  1. Delete a workflow activity definition 
  2. Submit a request using that workflow
  3. The workflow is not attaching to the request. The below error is also visible from the logs - com.glideapp.workflow.model.ModelRunTimeException: Record not available for wf_element_definition:<sys_id>, where sys_id is the sys_id of the missing workflow activity definition. 

Workaround

Restore the missing workflow activity definition.


Related Problem: PRB713616

Seen In

Fuji Patch 12 Hot Fix 1
Geneva Patch 1
Geneva Patch 3 Hot Fix 2
Geneva Patch 6 Hot Fix 2
Geneva Patch 8
Geneva Patch 8 Hot Fix 1
Helsinki Patch 4
Helsinki Patch 5

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-04-05 08:51:42
Published:2017-10-03