Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 public virtual IList <IDmnDecision> ParseDecisions(Stream inputStream)
 {
     EnsureUtil.EnsureNotNull("inputStream", inputStream);
     return(transformer.createTransform().modelInstance(inputStream).transformDecisions <IDmnDecision>());
 }