示例#1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            JsonSerializable other = (JsonSerializable)obj;

            if (dateProperty == null)
            {
                if (other.dateProperty != null)
                {
                    return(false);
                }
            }
            else if (!dateProperty.Equals(other.dateProperty))
            {
                return(false);
            }
            return(true);
        }
示例#2
0
        public static void addADay(JsonSerializable jsonSerializable)
        {
            DateTime newDate = new DateTime(jsonSerializable.DateProperty.Ticks + ONE_DAY_IN_MILLIS);

            jsonSerializable.DateProperty = newDate;
        }
示例#3
0
        public virtual void notify(DelegateTask delegateTask)
        {
            JsonSerializable variable = (JsonSerializable)delegateTask.getVariable(VARIABLE_NAME);

            addADay(variable);     // implicit update, i.e. no setVariable call
        }
示例#4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void execute(org.camunda.bpm.engine.delegate.DelegateExecution execution) throws Exception
        public virtual void execute(DelegateExecution execution)
        {
            JsonSerializable variable = (JsonSerializable)execution.getVariable(VARIABLE_NAME);

            addADay(variable);     // implicit update, i.e. no setVariable call
        }