Beispiel #1
0
        /// <summary>
        /// 加载流程定义
        /// </summary>
        /// <param name="p_prcID"></param>
        /// <returns></returns>
        internal static async Task <WfdPrc> GetPrcDef(long p_prcID)
        {
            WfdPrc def;

            if (!_prcDefs.TryGetValue(p_prcID, out def))
            {
                def = await AtCm.GetByID <WfdPrc>(p_prcID);

                _prcDefs[p_prcID] = def;
            }
            return(def);
        }
Beispiel #2
0
        async Task LoadWorkItem()
        {
            Dict dt = new Dict {
                { "itemid", _itemID }
            };

            PrcInst = await AtCm.First <WfiPrc>("流程-工作项的流程实例", dt);

            AtvInst = await AtCm.First <WfiAtv>("流程-工作项的活动实例", dt);

            WorkItem = await AtCm.GetByID <WfiItem>(_itemID);

            AtvDef = await AtCm.GetByID <WfdAtv>(AtvInst.AtvdID);
        }