package com.vci.starter.web.annotation;
|
|
import java.lang.annotation.Retention;
|
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.Target;
|
|
/**
|
* 生命周期对象定义,在其中定义上基本信息,在使用这个注解的对象上定义状态,和流向
|
* @author weidy
|
*/
|
@Target({java.lang.annotation.ElementType.TYPE})
|
@Retention(RetentionPolicy.RUNTIME)
|
public @interface VciLifeCycle {
|
|
/**
|
* 英文名称
|
* @return
|
*/
|
String name() default "";
|
|
/**
|
* 起始状态
|
* @return
|
*/
|
String startStatus() default "";
|
|
/**
|
* 显示文本
|
* @return
|
*/
|
String text() default "";
|
|
/**
|
* 描述
|
* @return
|
*/
|
String description() default "";
|
|
/**
|
* 连接线
|
* @return
|
*/
|
VciLifeCycleTrans[] translations() default @VciLifeCycleTrans(source = "",target = "",name="");
|
}
|