com.posco.reuse.activity
Class GlueMessageCreate

java.lang.Object
  extended by com.poscoict.glueframework.biz.activity.GlueActivity<GlueContext>
      extended by com.posco.reuse.activity.GlueMessageCreate

public class GlueMessageCreate
extends GlueActivity<GlueContext>

GlueMessageCreate´Â reuse Activity·Î½á parserµÈ Message°á°ú¸¦ ÀÌ¿ëÇÏ¿© »õ·Î¿î Message TC ȤÀº FileÀ» ¸¸µå´Â ¿ªÈ°À» ÇÑ´Ù. »õ·Î¿î GlueMessage°´Ã¼¸¦ »ý¼ºÇϱâ À§ÇÏ¿© GlueCreateMessage ActivityÀÇ Attribute¸¦ ÀÌ¿ëÇÏ¿© ÇØ´ç °´Ã¼¸¦ »ý¼ºÇÑ´Ù. »ý¼ºµÈ GlueMessage°´Ã¼¸¦ ÀÌ¿ëÇÏ¿© »õ·Î¿î »ý¼ºÇÏ°íÀÚ ÇÏ´Â Message´Â LayoutManager¿¡ Á¤ÀǵǾî ÀÖ´Â LayoutÀ» ±Ù°Å·Î message¸¦ StringÀ» »ý¼ºÇϰųª FileÀ» »ý¼ºÇÑ´Ù.

  Activity Property
  
  - layout : (Çʼö) applicationContext.xmlÀÇ GlueLayoutManager bean id.
  
  - result-key : (Çʼö) Context¿¡ MapÇüÅ·Π°á°ú¸¦ ´ãÀ» Key. 
       TCÀÏ °æ¿ì, Data±¸Á¶´Â Map < String, List < String > > .
           Áï, Map¿¡´Â ArrayList°¡ ´ã°Ü ÀÖ°í ±× Key°ªÀº TCIDÀÌ´Ù. 
          ÇϳªÀÇ °á°ú ¶Ç´Â °°Àº Á¾·ùÀÇ ¿©·¯°³ÀÇ °á°ú°¡ ArrayList·Î ÀúÀåµÊ.
       FileÀÏ °æ¿ì, Data±¸Á¶ String.
                 »ý¼ºµÈ ÆÄÀÏÀÇ °æ·Î.
                 
  - msg-id : (Çʼö) »ý¼ºÇÏ°íÀÚ ÇÏ´Â TC ID.
              ex). MSGFW002, MSGFW003 µî 
              
  - msg-type : (Çʼö) TC ȤÀº FileÀ» ¼³Á¤ÇÏ°íÀÚ ÇÒ¶§  
              ex). TCÀÏ °æ¿ì 'tc', FileÀÏ °æ¿ì 'file'
              
  - attr-cnt : (Çʼö) »õ·Î ¸¸µé¾îÁú TCÀÇ Layout¿¡ attributeÀÇ °¹¼ö
  
  - attr-1 ~ n : (Çʼö) »õ·Î ¸¸µé¾îÁú TCÀÇ Layout¿¡ attributeÀÇ °ª (type|condition@
              ex). C|MSGFW002, M|DEPTNO, R|sdd_result@EMPNO µî
                
  - file-name : (¼±ÅÃ) msg typeÀÌ ÆÄÀÏÀÏ °æ¿ìÀÇ ÆÄÀÏ À̸§
  
  - msgmulti-type : (¼±ÅÃ) ÇÑ°³ÀÇ Àü¹®ÀÇ ´ëÇؼ­ ´Ù¼öÀÇ Àü¹®À» »ç¿ëÇÒ °æ¿ì
               ex). ÇÑ°³ÀÏ °æ¿ì 'single' ´Ù¼öÀÏ °æ¿ì 'multi' (default : 'single')
               
  - charset : (¼±ÅÃ) CreateMessageÀÇ ParseTypeÀÌ byte ÀÏ °æ¿ì »ç¿ëµÊ. °íÁ¤°ª. 
  
  - charset-name : (¼±ÅÃ) CreateMessageÀÇ ParseTypeÀÌ byte ÀÏ °æ¿ì »ç¿ëµÊ. µ¿Àû°ª.
 
 ¿¹Á¦
  »ç¿ë ¿¹# 1 TC °æ¿ì
  
  <activity name="GlueMessageCreate" class="com.posco.reuse.activity.GlueMessageCreate">
     <transition name="success" value="end"/>
     <property name="attr-cnt" value="8"/>
     <property name="attr-1" value="C|MSGFW002"/>
     <property name="attr-2" value="M|DEPTNO"/>
     <property name="attr-3" value="R|sdd_result@ENAME"/>
     <property name="attr-4" value="M|DLOC"/>
     <property name="attr-5" value="A|sdd_result"/>
     <property name="attr-6" value="R|sdd_result@EMPNO"/>
     <property name="attr-7" value="R|sdd_result@ENAME"/>
     <property name="attr-8" value="M|CRUD"/>
     <property name="layout" value="layoutManager"/>
     <property name="msg-id" value="MSGFW002"/>
     <property name="msg-type" value="tc"/>
     <property name="msgmulti-type" value="multi"/>
     <property name="result-key" value="posco_createMessage"/>
  </activity>
  
  »ç¿ë ¿¹# 1 File °æ¿ì
  
  <activity name="GlueMessageCreate" class="com.posco.reuse.activity.GlueMessageCreate">
     <transition name="success" value="end"/>
     <property name="attr-cnt" value="8"/>
     <property name="attr-1" value="C|MSGFW002"/>
     <property name="attr-2" value="M|DEPTNO"/>
     <property name="attr-3" value="R|sdd_result@ENAME"/>
     <property name="attr-4" value="M|DLOC"/>
     <property name="attr-5" value="A|sdd_result"/>
     <property name="attr-6" value="R|sdd_result@EMPNO"/>
     <property name="attr-7" value="R|sdd_result@ENAME"/>
     <property name="attr-8" value="M|CRUD"/>
     <property name="layout" value="layoutManager"/>
     <property name="msg-id" value="MSGFW002"/>
     <property name="file-name" value="posco_createMessage.dat"/>
     <property name="msg-type" value="file"/> 
     <property name="msgmulti-type" value="multi"/>
     <property name="result-key" value="posco_createMessage"/>
  </activity>
  
  
  Âü°í : applicationContext.xml
  
      <bean id="layoutInXml" class="com.poscoict.glueframework.message.layout.GlueXmlMessageLayout">
          <property name="cacheManager" ref="cacheManager"/>
      </bean>
      <bean id="layoutInDB" class="com.poscoict.glueframework.message.layout.GlueDBMessageLayout">
          <property name="dao" ref="layout-dao"/>
          <property name="cacheManager" ref="cacheManager"/>
      </bean>
      <bean id="cacheManager" class="..."/>
      <bean id="layout-dao" class="..."/> 
      
     : glue.properties(ÆÄÀÏÀÇ path ¼³Á¤)
     
        reuse.msg.file.path=C:/data/test/
 


Field Summary
 
Fields inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
dynamicProperties, logger
 
Constructor Summary
GlueMessageCreate()
           
 
Method Summary
 String runActivity(GlueContext ctx)
           
 
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

GlueMessageCreate

public GlueMessageCreate()
Method Detail

runActivity

public String runActivity(GlueContext ctx)
Specified by:
runActivity in class GlueActivity<GlueContext>


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