use of org.kie.internal.task.api.ContentMarshallerContext in project jbpm by kiegroup.
the class FormProviderServiceImpl method getMarshallerContext.
protected ContentMarshallerContext getMarshallerContext(String deploymentId, String processId) {
DeployedUnit deployedUnit = deploymentService.getDeployedUnit(deploymentId);
if (deployedUnit == null) {
return new ContentMarshallerContext();
}
InternalRuntimeManager manager = (InternalRuntimeManager) deployedUnit.getRuntimeManager();
return new ContentMarshallerContext(manager.getEnvironment().getEnvironment(), manager.getEnvironment().getClassLoader());
}
Aggregations