com.yworks.yfiles.bpmn.view
Class ActivityTypeEnum

java.lang.Object
  extended bycom.yworks.yfiles.bpmn.view.ActivityTypeEnum

public class ActivityTypeEnum
extends Object

Type-safe enumeration for BPMN activity types.

 

Field Summary
static ActivityTypeEnum CALL_ACTIVITY
          Type constant for a call activity.
static ActivityTypeEnum EVENT_SUB_PROCESS
          Type constant for an event sub-process.
static ActivityTypeEnum TASK
          Type constant for a task.
static ActivityTypeEnum TRANSACTION
          Type constant for a transaction.
 
Method Summary
static ActivityTypeEnum getByName(String name)
          Returns the activity type constant that corresponds to the given activity type name.
 String toString()
          Returns a string representation of this activity type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TASK

public static final ActivityTypeEnum TASK
Type constant for a task.


TRANSACTION

public static final ActivityTypeEnum TRANSACTION
Type constant for a transaction.


EVENT_SUB_PROCESS

public static final ActivityTypeEnum EVENT_SUB_PROCESS
Type constant for an event sub-process.


CALL_ACTIVITY

public static final ActivityTypeEnum CALL_ACTIVITY
Type constant for a call activity.

Method Detail

toString

public String toString()
Returns a string representation of this activity type.


getByName

public static ActivityTypeEnum getByName(String name)
Returns the activity type constant that corresponds to the given activity type name.

Parameters:
name - the name of the type constant to retrieve. Should be one of
  • ACTIVITY_TYPE_CALL_ACTIVITY
  • ACTIVITY_TYPE_EVENT_SUB_PROCESS
  • ACTIVITY_TYPE_TASK
  • ACTIVITY_TYPE_TRANSACTION
Returns:
the activity type constant that corresponds to the given name or null if there is no corresponding type constant.


© Copyright 2010-2014,
yWorks GmbH.
All rights reserved.