com.poscoict.glueframework.biz.activity
Class GlueDefaultRouter

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

public class GlueDefaultRouter
extends GlueActivity<GlueContext>

Router Activity. GlueDefaultRouter Class´Â GlueContextÀÇ °ª¿¡ µû¶ó RoutingÀ» ÇÏ´Â ClassÀÌ´Ù.

 Activity Property
 
 - ¾øÀ½
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     <activity name="EventRouter" class="com.poscoict.glueframework.biz.activity.GlueDefaultRouter">
         <transition name="find" value="FindData"/>
         <transition name="update" value="UpdateData"/>
         <transition name="delete" value="DeleteData"/>
     </activity>
 
 
 GlueContext ³»¿ë ÀϺÎ.
  - {find=1, EMPNO=7782, ... } : OK
  - {update=1, EMPNO=7782, ... } : OK
  - {delete=1, EMPNO=7782, ... } : OK
  - {find=1, update=1, EMPNO=7782, ... } : ERROR
 
 {xxx}-service.xml¿¡ À§¿Í °°ÀÌ Á¤ÀÇ°¡ µÇ¾î ÀÖ°í, 
 GlueContext¿¡ transition name¿¡ ÇØ´çÇÏ´Â key°¡ 1°³¸¸ Á¸ÀçÇÑ´Ù¸é, 
 transition name¿¡ Á¤ÀÇµÈ Activity·Î Routing ÇÑ´Ù. 
 
 Activity°¡ RouterÀÎ °æ¿ì Event¿¡ µû¶ó ´ÙÀ½ Activity¸¦ °áÁ¤ÇÏ°Ô ÇÑ´Ù.
 ÇϳªÀÇ Activity¿¡¼­ µÑ ÀÌ»óÀÇ Event °ªÀÌ Á¸Àç ÇÒ ¼ö ¾ø´Ù.
 Áï, Activity¿¡ Á¤ÀÇµÈ transition nameµéÀÌ Context¿¡¼­ 2°³ ÀÌ»ó Á¸ÀçÇÒ °æ¿ì RoutingÀ» ÇÏÁö ¸øÇÑ´Ù.
 


Field Summary
 
Fields inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
dynamicProperties, logger
 
Constructor Summary
GlueDefaultRouter()
           
 
Method Summary
 String runActivity(GlueContext ctx)
          runActivity¸¦ Overriding ÇÑ´Ù¸é ¹Ýµå½Ã "return GlueBizControlConstants.ROUTER;"¸¦ ÇÏ¿©¾ß ÇÑ´Ù.
 
Methods inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
commitTransaction, commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, 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

GlueDefaultRouter

public GlueDefaultRouter()
Method Detail

runActivity

public String runActivity(GlueContext ctx)
runActivity¸¦ Overriding ÇÑ´Ù¸é ¹Ýµå½Ã "return GlueBizControlConstants.ROUTER;"¸¦ ÇÏ¿©¾ß ÇÑ´Ù.

Specified by:
runActivity in class GlueActivity<GlueContext>
Parameters:
ctx - GlueContext
Returns:
"router"


Copyright © 2013–2018 POSCO ICT. All rights reserved.