亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? apreconsumer.java

?? 日常的辦公系統(tǒng) 應(yīng)用工作流框架等增加員工的基本信息、培訓(xùn)信息、獎(jiǎng)罰信息、薪資信息
?? JAVA
字號(hào):
/* * Copyright (c) 2005, John Mettraux, OpenWFE.org * All rights reserved. *  * Redistribution and use in source and binary forms, with or without  * modification, are permitted provided that the following conditions are met: *  * . Redistributions of source code must retain the above copyright notice, this *   list of conditions and the following disclaimer.   *  * . Redistributions in binary form must reproduce the above copyright notice,  *   this list of conditions and the following disclaimer in the documentation  *   and/or other materials provided with the distribution. *  * . Neither the name of the "OpenWFE" nor the names of its contributors may be *   used to endorse or promote products derived from this software without *   specific prior written permission. *  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE  * POSSIBILITY OF SUCH DAMAGE. * * $Id: ApreConsumer.java,v 1.5 2005/05/17 16:40:18 jmettraux Exp $ *///// ApreConsumer.java//// jmettraux@openwfe.org//// generated with // jtmpl 1.0.04 20.11.2001 John Mettraux (jmettraux@openwfe.org)//package openwfe.org.apre;import openwfe.org.ServiceException;import openwfe.org.OpenWfeException;import openwfe.org.ApplicationContext;import openwfe.org.xml.XmlUtils;import openwfe.org.engine.listen.AbstractWorkItemConsumer;import openwfe.org.engine.workitem.WorkItem;import openwfe.org.engine.workitem.LaunchItem;import openwfe.org.engine.workitem.InFlowWorkItem;import openwfe.org.engine.workitem.AttributeUtils;import openwfe.org.engine.workitem.IntegerAttribute;import openwfe.org.engine.dispatch.DispatchingException;import openwfe.org.engine.expressions.ReplyException;import openwfe.org.engine.participants.Participant;import openwfe.org.engine.participants.ParticipantMap;/** * The default implementation of a workitem consumer (as used by the engine) * * <p><font size=2>CVS Info : * <br>$Author: jmettraux $ * <br>$Date: 2005/05/17 16:40:18 $ * <br>$Id: ApreConsumer.java,v 1.5 2005/05/17 16:40:18 jmettraux Exp $ </font> * * @author jmettraux@openwfe.org */public class ApreConsumer    extends AbstractWorkItemConsumer{    private final static org.apache.log4j.Logger log = org.apache.log4j.Logger        .getLogger(ApreConsumer.class.getName());    //    // CONSTANTS (definitions)    //    // FIELDS    //    // CONSTRUCTORS    //    // METHODS    /**     * This method looks at the wi and either reply to the corresponding     * ParticipantExpression either launch a new wf.     */    public Object use (final WorkItem wi)        throws OpenWfeException    {        //        // should handle CancelItem instances too !                if ( ! (wi instanceof InFlowWorkItem))        {            log.debug                ("use() received wi of class "+wi.getClass().getName()+                 ". Not handled.");                    //            // (engine gets replied to)            return null;        }        //        // handle        (new UsageThread((InFlowWorkItem)wi)).start();        //        // flow of operations continues        // (engine gets replied to)                return null;    }    //    // INNER CLASSES    private static Router lookupRouter (final ApplicationContext context)    {        return (Router)ApplicationContext.lookup            (context, "router", "ApreContext.router");    }    class UsageThread extends Thread    {        InFlowWorkItem item = null;        public UsageThread (InFlowWorkItem item)        {            this.item = item;        }        public void run ()        {            try            {                InFlowWorkItem result = this.item;                //                // determine agent and make it work                final Router router =                     lookupRouter(ApreConsumer.this.getContext());                log.debug                    ("UsageThread.run() participantName >"+                     item.getParticipantName()+"<");                Agent agent = router                    .determineAgent(item.getParticipantName());                if (agent == null)                {                    result.addHistoryItem                        ("apre",                         "agent '"+item.getParticipantName()+"' doesn't exist");                    log.debug                        ("agent '"+item.getParticipantName()+"' doesn't exist");                }                else                {                    try                    {                        result = agent.use(this.item);                        log.debug                            ("Agent '"+agent.getName()+                             "' invoked successfully");                        //                        // make sure there is an agent return code in the                        // workitem                        enforceReturnCode(this.item, 0);                    }                    catch (final Throwable t)                    {                        result.addHistoryItem                            ("agent::"+agent.getName(),                             ""+t);                        log.debug                            ("Agent '"+agent.getName()+"' invocation failed",                              t);                        //                        // set return code to 1 (general error)                        enforceReturnCode(this.item, 1);                    }                }                //                // forward workitem                                final ParticipantMap pMap = openwfe.org.engine.Definitions                    .getParticipantMap(ApreConsumer.this.getContext());                String engineId = item.getLastExpressionId().getEngineId();                Participant participant = pMap.get(engineId);                if (participant == null)                {                    throw new DispatchingException                        ("Cannot send back the work item to unknown engine '"+                         engineId+"'");                }                participant.dispatch(item);            }            catch (Exception e)            {                log.warn("Workitem usage failed. Workitem lost.", e);            }        }    }    /**     * Makes sure the workitem just handled by an agent contains an     * agent return code.     */    protected void enforceReturnCode (InFlowWorkItem wi, int returnCode)    {        IntegerAttribute currentReturnCode =             (IntegerAttribute)wi.getAttribute(Agent.AGENT_RESULT);        int iCurrentReturnCode = 0;        if (currentReturnCode != null)        {            iCurrentReturnCode = ((Integer)AttributeUtils                .owfe2java(currentReturnCode)).intValue();        }        if (returnCode != 0)            //            // error code        {            if (currentReturnCode != null &&                iCurrentReturnCode != 0)                //                // error return code already set            {                return;            }            wi.getAttributes().put                (Agent.AGENT_RESULT, new IntegerAttribute(returnCode));            return;        }        //        // success code                if (currentReturnCode != null) return;            // do not override potiental error code        wi.getAttributes().put(Agent.AGENT_RESULT, new IntegerAttribute(0));    }    //    // METHODS from Service    public org.jdom.Element getStatus ()    {        final org.jdom.Element result = new org.jdom.Element(getName());        result.addContent(XmlUtils.getClassElt(this));        result.addContent(XmlUtils.getRevisionElt("$Id: ApreConsumer.java,v 1.5 2005/05/17 16:40:18 jmettraux Exp $"));        return result;    }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品亚洲专一区二区三区 | 日韩欧美一二三四区| 久久99精品网久久| 一区二区三区精品视频| 精品国产青草久久久久福利| 91美女视频网站| 精品一区二区三区影院在线午夜| 最新热久久免费视频| 日韩欧美一卡二卡| 欧美日韩一二区| av在线播放一区二区三区| 麻豆免费看一区二区三区| 亚洲激情五月婷婷| 一区在线中文字幕| 国产亚洲欧美日韩在线一区| 91精品久久久久久久久99蜜臂| 成人动漫精品一区二区| 国产精品一区在线观看乱码| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲少妇30p| 欧美国产禁国产网站cc| 精品久久久久久久久久久久久久久久久| 91福利在线导航| youjizz久久| 国产精品正在播放| 国产一区二区在线电影| 裸体在线国模精品偷拍| 日本午夜一区二区| 午夜久久久影院| 亚洲午夜影视影院在线观看| 亚洲色图19p| 1024精品合集| 亚洲免费电影在线| 亚洲男女毛片无遮挡| 亚洲三级视频在线观看| 成人免费一区二区三区在线观看| 国产精品色哟哟| 国产精品麻豆久久久| 国产精品视频观看| 日韩一区中文字幕| 亚洲三级小视频| 亚洲精品免费在线播放| 一个色妞综合视频在线观看| 一区二区三区日韩欧美精品| 亚洲欧美日韩国产中文在线| 亚洲黄色免费网站| 亚洲一区二区三区中文字幕| 一区二区三区四区激情| 亚洲图片欧美色图| 日本美女视频一区二区| 国产综合久久久久影院| 国产高清亚洲一区| 欧美另类高清zo欧美| 欧美日韩激情在线| 欧美一区二区国产| 精品剧情在线观看| 国产女人水真多18毛片18精品视频| 欧美激情在线观看视频免费| 亚洲人成网站色在线观看| 亚洲久本草在线中文字幕| 亚洲一区二区免费视频| 婷婷久久综合九色国产成人| 久久99精品国产麻豆婷婷洗澡| 国产成人亚洲精品狼色在线| 成人三级伦理片| 色综合久久88色综合天天| 欧美中文字幕一二三区视频| 欧美精品久久天天躁| 久久久久99精品一区| 亚洲丝袜另类动漫二区| 日韩黄色免费网站| 国产乱色国产精品免费视频| 色综合久久久久久久久| 欧美日韩国产经典色站一区二区三区| 欧美一区二区三区播放老司机| 久久久久久免费| 亚洲激情校园春色| 精品一区二区三区视频在线观看| 暴力调教一区二区三区| 91精品国产综合久久蜜臀| 久久精品这里都是精品| 亚洲国产欧美在线| 国产成人精品免费在线| 欧美色图12p| 久久久91精品国产一区二区三区| 亚洲欧美国产77777| 蜜桃91丨九色丨蝌蚪91桃色| 高清成人免费视频| 91精品婷婷国产综合久久竹菊| 久久丝袜美腿综合| 亚洲第一主播视频| 国产不卡免费视频| 欧美久久一二三四区| 国产精品嫩草影院av蜜臀| 美脚の诱脚舐め脚责91| 色婷婷综合久久久中文字幕| 久久九九国产精品| 男人操女人的视频在线观看欧美| 99国产欧美另类久久久精品| 欧美成人一区二区| 亚洲二区视频在线| 91免费国产在线观看| 欧美大片国产精品| 亚洲国产日日夜夜| 91麻豆自制传媒国产之光| 久久久久久久综合色一本| 亚洲电影一级黄| 一道本成人在线| 中文字幕第一区综合| 国产综合久久久久久久久久久久| 欧美日韩大陆一区二区| 亚洲黄色av一区| 成人av在线观| 欧美国产视频在线| 激情图片小说一区| 日韩精品一区在线观看| 婷婷亚洲久悠悠色悠在线播放| 色综合欧美在线| 一区二区中文视频| 国产精品888| 亚洲国产成人高清精品| 91美女蜜桃在线| 亚洲欧美综合色| 99re成人精品视频| 国产精品国产三级国产a| 国产成+人+日韩+欧美+亚洲| 久久影音资源网| 国产在线麻豆精品观看| 久久综合色8888| 另类欧美日韩国产在线| 日韩一区二区免费在线电影 | 国产一区激情在线| 精品久久久久久最新网址| 日本成人中文字幕| 日韩欧美亚洲一区二区| 免费在线视频一区| 日韩一区二区三区视频在线观看| 天天色天天操综合| 欧美一级艳片视频免费观看| 欧美aⅴ一区二区三区视频| 欧美日韩情趣电影| 亚洲va韩国va欧美va| 欧美一区午夜精品| 另类欧美日韩国产在线| 久久久www免费人成精品| 国产乱码精品一区二区三区av | 99精品久久只有精品| 亚洲视频图片小说| 欧美综合欧美视频| 日韩制服丝袜先锋影音| 欧美一级视频精品观看| 国产曰批免费观看久久久| 国产女人18水真多18精品一级做| 成人理论电影网| 亚洲视频一二三区| 欧美日韩综合一区| 麻豆91精品视频| 国产女人水真多18毛片18精品视频| 成人激情电影免费在线观看| 亚洲精品乱码久久久久| 欧美肥妇free| 国产精品一区二区在线播放| 国产精品女同互慰在线看| 色婷婷久久综合| 午夜精品久久久| 国产亚洲精品久| 欧洲精品中文字幕| 精品一区二区三区免费| 中文字幕亚洲区| 日韩一区二区在线播放| 成人久久视频在线观看| www.性欧美| 首页综合国产亚洲丝袜| 久久噜噜亚洲综合| 色婷婷亚洲婷婷| 国产又黄又大久久| 一区二区三区中文字幕| 日韩三级在线免费观看| 99久久精品免费| 另类调教123区| 一区二区三区精品视频在线| 精品国产乱码久久久久久影片| 99久久综合99久久综合网站| 日韩va亚洲va欧美va久久| 国产精品美女久久久久av爽李琼| 欧美在线看片a免费观看| 精品亚洲国内自在自线福利| 亚洲精品国久久99热| 久久午夜电影网| 欧美写真视频网站| 成人高清视频免费观看| 日本欧美肥老太交大片| 亚洲欧洲制服丝袜| 久久久久国产免费免费| 在线免费观看一区| 国产成人啪免费观看软件| 日韩黄色片在线观看| 亚洲人成在线观看一区二区| 精品美女在线播放| 在线观看91av|