com.poscoict.glueframework.scheduling.activity
Class GlueJobCall

java.lang.Object
  extended by com.poscoict.glueframework.biz.activity.GlueActivity<GlueContext>
      extended by com.poscoict.glueframework.scheduling.activity.GlueJobCall

public class GlueJobCall
extends GlueActivity<GlueContext>

¿ø°Ý¿¡ À§Ä¡ÇÑ ½ºÄÉÁÙ·¯ ¼­¹ö(com.poscoict.glueframework.scheduling.server.GlueSchedulerHttpServer)·Î Job ±âµ¿À» ¿äûÇÏ´Â ActivityÀÌ´Ù.

 »ç¿ë ¿¹
 <activity name="FireJob" class="com.poscoict.glueframework.scheduling.activity.GlueJobCall">
     <transition name="success" value="end" />
    <property name="sender" value="eventSender" />
    <property name="server-address" value="schedulerServer" />
    <property name="job-name" value="jobName" />
    <property name="job-log-no" value="requestID" />
    <property name="result-key" value="jobName_call_result" />
  </activity>
 
 Property ¼³Á¤
   - sender : (Çʼö) applicationContext.xml(1)ÀÇ eventSender id.
  
  - job-name : (Çʼö) applicationContext.xml(2)ÀÇ JOB(PosJobDetail) À̸§À» °®´Â  Context Key
 
  - server-address : (Çʼö) scheduler server ip, port¸¦ °®´Â Context Key
            http://<server-address>/glue-scheduler ÀÇ url »ý¼º.
  
  - job-log-no : (¼±ÅÃ) request id¸¦ °®´Â Context Key 
          GLUE_SCH_FIRED_TRIGGER_HISTORYÀÇ REQUEST_ID¿¡ ÇØ´çÇÏ´Â °ªÀ¸·Î
          Job ¼öÇà½ÇÀûÀÌ DB¿¡ loggingµÇ´Â °æ¿ìÀÇ Key. 
  
  - result-key : (¼±ÅÃ) Context¿¡ ´ã±â´Â Job È£Ãâ ¿©ºÎ. Job ±âµ¿ ¼º°ø½Ã SUCCESS °ªÀÌ ´ã±è.
          [ default ] : <job-name>_result
 


Field Summary
 
Fields inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
dynamicProperties, logger
 
Constructor Summary
GlueJobCall()
           
 
Method Summary
 String runActivity(GlueContext ctx)
          Sub Class¿¡¼­ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼­ È£ÃâÇÑ´Ù.
 
Methods inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, setEventList, setName, setProperty, setTransition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueJobCall

public GlueJobCall()
Method Detail

runActivity

public String runActivity(GlueContext ctx)
Description copied from class: GlueActivity
Sub Class¿¡¼­ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼­ È£ÃâÇÑ´Ù. °á°ú °ªÀº GlueContext¿¡ ´ã¾Æ¼­ ´ÙÀ½ Activity ¶Ç´Â F/W¿¡ Àü´ÞÇÏ°Ô µÈ´Ù. ÇÊ¿äÇÑ ¸ðµç Data´Â GlueContext¿¡¼­ È£ÃâÇÏ¿© »ç¿ëÇÏ°Ô µÈ´Ù.

Specified by:
runActivity in class GlueActivity<GlueContext>
Parameters:
ctx - GlueContext
Returns:
String Á¤»óÀûÀ̸é "success"¸¦ Return ÇÏ°í ºñÁ¤»ó 󸮸¦ ¿øÇϸé "failure"¸¦ Return ÇÑ´Ù.
 ¿¹) 
 <transition name="success" value="BizLogic"/>
 <transition name="failure" value="ErrorHandle"/>
 ==> return "success"À̸é BizLogic Activity ¸¦ ½ÇÇàÇÔ.
 


Copyright © 2013–2014 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.