public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
        {
            object value = untypedValue.Value;

            if (value is byte[])
            {
                return((ITypedValue)Variables.ByteArrayValue((byte[])value));
            }
            else
            {
                byte[] data = IoUtil.ReadInputStream((System.IO.Stream)value, null);
                return((ITypedValue)Variables.ByteArrayValue(data));
            }
        }
Example #2
0
        public virtual BytesValue convertToTypedValue(UntypedValueImpl untypedValue)
        {
            object value = untypedValue.Value;

            if (value is sbyte[])
            {
                return(Variables.byteArrayValue((sbyte[])value, untypedValue.Transient));
            }
            else
            {
                sbyte[] data = IoUtil.readInputStream((Stream)value, null);
                return(Variables.byteArrayValue(data, untypedValue.Transient));
            }
        }
Example #3
0
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.DoubleValue((double?)untypedValue.Value));
 }
Example #4
0
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(NullValueImpl.Instance);
 }
Example #5
0
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.StringValue((string)untypedValue.Value));
 }
Example #6
0
 public virtual ShortValue convertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.shortValue((short?)untypedValue.Value, untypedValue.Transient));
 }
Example #7
0
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     throw new NotSupportedException("Currently no automatic conversation from UntypedValue to FileValue");
 }
Example #8
0
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.BooleanValue((bool?)untypedValue.Value));
 }
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     // untyped values are always deserialized
     return((ITypedValue)Variables.ObjectValue(untypedValue.Value).Create());
 }
Example #10
0
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     return((ITypedValue)Variables.DateValue((DateTime)untypedValue.Value));
 }
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.IntegerValue((int?)untypedValue.Value));
 }
Example #12
0
 public virtual DateValue convertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.dateValue((DateTime)untypedValue.Value, untypedValue.Transient));
 }
Example #13
0
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.LongValue((long?)untypedValue.Value));
 }
Example #14
0
 public virtual IntegerValue convertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.integerValue((int?)untypedValue.Value, untypedValue.Transient));
 }
Example #15
0
        public virtual void SetVariableLocal(string variableName, object value)
        {
            ITypedValue typedValue = new UntypedValueImpl(value);

            SetVariableLocal(variableName, typedValue, SourceActivityVariableScope);
        }
Example #16
0
 public abstract ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue);
Example #17
0
 public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue)
 {
     return(Variables.ShortValue((short?)untypedValue.Value));
 }