com.poscoict.glueframework.ucube.activity
Class GlueMessageSender

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

public class GlueMessageSender
extends GlueActivity<GlueContext>

GlueMessageSender Activity. u-CUBE3 를 이용한 Message Sender.

 사용 예
 <activity name="Message Send" class="com.poscoict.glueframework.ucube.activity.GlueMessageSender">
      <transition name="success" value="end"/>
      <property name="message-key" value="stringObj"/>
      <property name="interface-type" value="tc"/>
      <property name="interface-id" value="IF_12345"/>
      <property name="sender" value="ucubeManager"/>
  </activity>
 
 Property 설정
 - sender : Message(TC,File)을 송신 하는 component. application.xml 의 bean id.(필수)
         예) applicationContext.xml 
  <bean id="ucubeManager" class="com.poscoict.glueframework.ucube.GlueUCubeManagerImpl">
      <property name="configFile" value="C://SEND.xml"/>
  </bean>
 
 - interface-id : u-CUBE3 의 interface id.(필수)
 
 - interface-type : interface type.(필수)
       tc 또는 file
 
 - message : 보내고자 하는 message를 담고 있는 ctx의 key.(필수)
       interface-type이 tc일경우 ctx.get(key)는 String, List, Map> 임. 
       interface-type이 file일 경우 ctx.get(key)는 String 임.
 
 


Field Summary
 
Fields inherited from class com.poscoict.glueframework.biz.activity.GlueActivity
dynamicProperties, logger
 
Constructor Summary
GlueMessageSender()
           
 
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

GlueMessageSender

public GlueMessageSender()
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.