Workflow activity is not getting complete using dfc code

I am using DFC code to complete manual wokflow activity but it is failing with below error. Please let me know which jar i need to add in classpath or i need to do anything else.

				if(workitemEx.getRuntimeState()!=1)
workitemEx.acquire(); workitemEx.complete(); Error - java.lang.ClassNotFoundException: com.emc.xcp.artifact.model.artifact.DataModel
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[na:na]
at com.emc.xcp.runtime.engine.workflowRuntime.ActivityCache.loadProcessModelFromRepository(ActivityCache.java:136) ~[bpm-infra-23.4.0000.0095.jar:na]
at com.emc.xcp.runtime.engine.workflowRuntime.ActivityCache.getProcessModel(ActivityCache.java:87) ~[bpm-infra-23.4.0000.0095.jar:na]
at com.emc.xcp.runtime.engine.workflowRuntime.AbstractRuntimeWorkflowHandler.init(AbstractRuntimeWorkflowHandler.java:30) ~[bpm-infra-23.4.0000.0095.jar:na]
at com.emc.xcp.runtime.engine.workflowRuntime.RuntimeTaskCompleteHandler.<init>(RuntimeTaskCompleteHandler.java:22) ~[bpm-infra-23.4.0000.0095.jar:na]
at com.documentum.bpm.impl.WorkflowHandlerFactory.getTaskCompleteHandler(WorkflowHandlerFactory.java:16) ~[na:na]
at com.documentum.bpm.impl.DfWorkitemEx.invokeWitemCompleteRPC(DfWorkitemEx.java:291) ~[na:na]
at com.documentum.fc.client.DfWorkitem.completeEx2(DfWorkitem.java:505) ~[dfc-23.4.0000.jar:na]
at com.documentum.fc.client.DfWorkitem.completeEx(DfWorkitem.java:499) ~[dfc-23.4.0000.jar:na]
at com.documentum.fc.client.DfWorkitem.complete(DfWorkitem.java:493) ~[dfc-23.4.0000.jar:na]
at com.documentum.bpm.impl.DfWorkitemEx___PROXY.complete(DfWorkitemEx___PROXY.java) ~[na:na]

Comments

  • As the error says, a class is missing from the classpath. It looks like the class is in com.emc.xcp.artifactmanager.jar. You can find it under the bpm web application deployed to your Java Method Server (assuming you installed Process Engine properly). It's likely that you will need other jars as well (e.g. com.emc.xcp.common.jar). Just add them using trial and error until it works.

  • This issue resolved after adding dctm_infra_da.jar