Exemplo n.º 1
0
        protected virtual JObject Serialize(BPMConnection cn, BPMProcStep step)
        {
            JObject jstep            = TaskHandler.Serialize(cn, step);
            string  loginUserAccount = YZAuthHelper.LoginUserAccount;

            if (step.IsHumanStep)
            {
                string account = String.IsNullOrEmpty(step.OwnerAccount) ? loginUserAccount:step.OwnerAccount;
                jstep["stk"] = YZAuthHelper.Acctout2FormAuthCookie(account);
            }
            return(jstep);
        }