protected internal override IList <DecisionRequirementsDefinitionEntity> TransformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Bpm.Engine.Impl.Core.Model.Properties properties) { byte[] bytes = resource.Bytes; System.IO.MemoryStream inputStream = new System.IO.MemoryStream(bytes); try { DecisionRequirementsDefinitionEntity drd = transformer.createTransform().modelInstance(inputStream).transformDecisionRequirementsGraph <DecisionRequirementsDefinitionEntity>(); return(new List <DecisionRequirementsDefinitionEntity>() { drd }); } catch (System.Exception e) { throw Log.ExceptionParseDmnResource(resource.Name, e); } }
public virtual IList <IDmnDecision> ParseDecisions(Stream inputStream) { EnsureUtil.EnsureNotNull("inputStream", inputStream); return(transformer.createTransform().modelInstance(inputStream).transformDecisions <IDmnDecision>()); }