ALBPM Process API

fuego.papi
Interface ProcessDiagram


public interface ProcessDiagram

This interface represents the diagram of a given process. It has several methods to decorate the process or add different labels to activities and other objects.


Field Summary
static String THEME_BPMN
           
static String THEME_BUSINESS_ANALYST
           
static String THEME_CLASSIC
           
static String THEME_COLOR_BPMN
           
static String THEME_UML
           
static String[] themes
           
static String TRANSITION_CONDITION
           
static String TRANSITION_DESCRIPTION
           
static String TRANSITION_NAME
           
 
Method Summary
 fuego.ui.Image getIconForActivity(String activityId)
          Gets the icon image of the activity using the selected theme.
 fuego.ui.Image getImage()
          Gets the image of the process.
 fuego.ui.Image getImageForActivity(String activityId)
          Gets the image being used to render the activity shape by returning the corresponding image taken from the used theme or the custom image if the designer has used a local image
 fuego.geom.Rectangle getRectangleForActivity(String activityId)
          Gets the rectangle of the bounds of the passed activity
 String getRelativePathForActivityIconImage(String activityId)
           
 String getRelativePathForActivityImage(String activityId)
           
 void highlightActivityPath(String[] activityIds)
          Sets an activity path to be highlighted in the process diagram.
 void setDrawFlowOnly(boolean value)
          Sets the diagram to draw only the flow of the process excluding global activities and roles with only globals inside
 void setHeadless(boolean isHeadless)
           
 void setHorizontalDrawing(boolean isHorizontalDrawing)
          Defines if the process will be drawn horizontally.
 void setLocale(Locale loc)
          Sets the default locale for the process so all visible labels are printed in this locale if available Otherwise the default locale will be used.
 void setScale(float scale)
           
 void setTheme(String themeName)
          Sets the theme to be used in the drawing
 void setTransitionMessageType(String type)
          Sets what to render as label for conditional transitions
 void showIconInActivity(String activityId, fuego.ui.Image icon)
          Shows an icon in the upper right side of the activity
 void showTextInActivity(String activityId, String text)
          Sets a label to be located in the upper side of the activity.
 

Field Detail

THEME_BPMN

@NonNls
static final String THEME_BPMN
See Also:
Constant Field Values

THEME_BUSINESS_ANALYST

@NonNls
static final String THEME_BUSINESS_ANALYST
See Also:
Constant Field Values

THEME_CLASSIC

@NonNls
static final String THEME_CLASSIC
See Also:
Constant Field Values

THEME_COLOR_BPMN

@NonNls
static final String THEME_COLOR_BPMN
See Also:
Constant Field Values

THEME_UML

@NonNls
static final String THEME_UML
See Also:
Constant Field Values

themes

static final String[] themes

TRANSITION_CONDITION

@NonNls
static final String TRANSITION_CONDITION
See Also:
Constant Field Values

TRANSITION_DESCRIPTION

@NonNls
static final String TRANSITION_DESCRIPTION
See Also:
Constant Field Values

TRANSITION_NAME

@NonNls
static final String TRANSITION_NAME
See Also:
Constant Field Values
Method Detail

setHeadless

void setHeadless(boolean isHeadless)

setDrawFlowOnly

void setDrawFlowOnly(boolean value)
Sets the diagram to draw only the flow of the process excluding global activities and roles with only globals inside

Parameters:
value -

setHorizontalDrawing

void setHorizontalDrawing(boolean isHorizontalDrawing)
Defines if the process will be drawn horizontally. This means roles as rows intead of roles as columns

Parameters:
isHorizontalDrawing -

getIconForActivity

fuego.ui.Image getIconForActivity(String activityId)
Gets the icon image of the activity using the selected theme.

Parameters:
activityId -
Returns:

getImage

fuego.ui.Image getImage()
Gets the image of the process. This method should be invoked after setting all the texts and decorations to the process

Returns:
The image of the process

getImageForActivity

fuego.ui.Image getImageForActivity(String activityId)
Gets the image being used to render the activity shape by returning the corresponding image taken from the used theme or the custom image if the designer has used a local image

Parameters:
activityId -
Returns:
The image of the activity

setLocale

void setLocale(Locale loc)
Sets the default locale for the process so all visible labels are printed in this locale if available Otherwise the default locale will be used.

Parameters:
loc -

getRectangleForActivity

fuego.geom.Rectangle getRectangleForActivity(String activityId)
Gets the rectangle of the bounds of the passed activity

Parameters:
activityId - - The activity's name
Returns:
The rectangle with the activity's bound inside the image.

getRelativePathForActivityIconImage

String getRelativePathForActivityIconImage(String activityId)

getRelativePathForActivityImage

String getRelativePathForActivityImage(String activityId)

setScale

void setScale(float scale)

setTheme

void setTheme(String themeName)
Sets the theme to be used in the drawing

Parameters:
themeName -

setTransitionMessageType

void setTransitionMessageType(String type)
Sets what to render as label for conditional transitions

Parameters:
type - The type of message to render: TRANSITION_CONDITION, TRANSITION_NAME, TRANSITION_DESCRIPTION
See Also:
TRANSITION_CONDITION, TRANSITION_NAME, TRANSITION_DESCRIPTION

highlightActivityPath

void highlightActivityPath(String[] activityIds)
Sets an activity path to be highlighted in the process diagram. By passing null the highlighted path is reset

Parameters:
activityIds -

showIconInActivity

void showIconInActivity(String activityId,
                        fuego.ui.Image icon)
Shows an icon in the upper right side of the activity

Parameters:
activityId -
icon -

showTextInActivity

void showTextInActivity(String activityId,
                        String text)
Sets a label to be located in the upper side of the activity. Label's lengths should not be greater than 100 characters

Parameters:
activityId -
text -

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved