Esempio n. 1
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)
        {
            if (execution.getVariable("listVar") != null)
            {
                execution.removeVariable("listVar");
                execution.setVariable("listVar", "stringValue");
            }
            else if (execution.getVariable("foo") != null)
            {
                execution.removeVariable("foo");
                execution.setVariable("foo", "secondValue");
            }
        }
Esempio n. 2
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)
        {
            IList <string> list = (IList <string>)execution.getVariable("listVar");

            execution.removeVariable("listVar");

            // implicitly update the previous list, should update the variable value
            list.Add(NEW_ELEMENT);
        }
Esempio n. 3
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)
        {
            execution.setVariable("foo", "value");
            execution.removeVariable("foo");
            execution.setVariable("foo", "bar");
        }