com.sap.caf.eu.gp.process.api

Interface IGPModifiableProcess

All Superinterfaces:
IGPActivity, IGPBlock, IGPDevelopmentObject, IGPModifiableActivity, IGPModifiableBlock, IGPModifiableDevelopmentObject, IGPProcess

public interface IGPModifiableProcess
extends IGPModifiableBlock, IGPProcess

Represents a process definition.


Method Summary
 void addRestrictionPrincipal(IPrincipal principal)
          Adds a principal to the restriction list
 IGPModifiableRoleInfo addRole(String techName, String text, GPRoleType type)
          Add a new role with given name, display text and role type.
 String getDefaultRuntimeView()
          Returns the id of the default runtime view
 IGPModifiableRoleInfo getModifiableAdminRole()
          Returns the Admin Role for this process
 IGPModifiableRoleInfo getModifiableOverseerRole()
          Return the Overseer Role for this process
 IGPModifiableRoleInfo getModifiableOwnerRole()
          Return the Owner Role for this process
 GPProcessMultiplicity getProcessMultiplicity()
          Get the process multiplicity.
 Iterator getRestrictionPrincipals()
          Retrieves all principals from the restriction list
 Iterator getRuntimeViews()
          Returns the list of all views that will be shown at runtime
 boolean isAutomaticallyStarted()
          Returns true if the process should be automatically started By default, the process is not automatically started
 boolean isRestrictDefaultRolePrincipals()
          Denotes whether the principals that are assigned to the default roles should be restricted to the set of principals assigned in design time
 void removeAllRestrictionPrincipals()
          Removes all principals from the restriction list
 IPrincipal removeRestrictionPrincipal(String uniqueId)
          Removes a principal with a given ID from the restriction list
 void setAutomaticallyStartedMode(boolean isAutomaticallyStarted)
          Sets whether the process should be automatically started or not.
 void setDefaultRuntimeView(String viewID)
          Sets the default runtime view
 void setProcessMultiplicity(GPProcessMultiplicity multiplicity)
          Set the process multiplicity.
 void setRuntimeViews(List views)
          Sets the list of all views that will be shown at runtime
 
Methods inherited from interface com.sap.caf.eu.gp.process.api.IGPModifiableBlock
addRole, getBlockType, getModifiableStructure, getRole, getRoleMap, getRoles, removeRole, setHiddenInRuntimeViews
 
Methods inherited from interface com.sap.caf.eu.gp.process.api.IGPModifiableActivity
addAdHocActivity, addAttachment, addAttachmentId, addInfoCallableObject, isPersisted, removeAdHocActivity, removeAttachment, removeInfoCallableObject, setAttachmentIdList, setInputMappingGroup, setLocalParameters, setOutputMappingGroup
 
Methods inherited from interface com.sap.caf.eu.gp.base.api.IGPModifiableDevelopmentObject
addPermission, addToCategory, removeFromCategory, removePermission, removePermission, setDescription, setInputParameters, setOutputParameters, setTitle, validate
 
Methods inherited from interface com.sap.caf.eu.gp.base.api.IGPDevelopmentObject
getCategories, getDescription, getID, getInputParameters, getMetadata, getOriginalLocale, getOutputParameters, getPermissions, getStatus, getTitle, getType, getVersionNumber, resolveDescription, resolveTitle
 
Methods inherited from interface com.sap.caf.eu.gp.process.api.IGPActivity
getAdhocActivities, getAssignedCategories, getAttachmentIds, getAttachments, getCreationDate, getCreator, getID, getInfoCallableObjects, getInputMappingGroup, getInputParameters, getLocalParameters, getOutputMappingGroup, getOutputParameters, getParentBlock, getParentProcess, getVersionNumber, isAction, isBlock, resolveDescription, resolveTitle
 
Methods inherited from interface com.sap.caf.eu.gp.process.api.IGPBlock
getRoleInfo, getRoleInfoCount, getStructure, getValidUntilDate, hasAdministratorPermission, hasInstantiatePermission, hasWritePermission, isHiddenInRuntimeViews
 
Methods inherited from interface com.sap.caf.eu.gp.process.api.IGPProcess
getAdminRole, getOverseerRole, getOwnerRole
 

Method Detail

getProcessMultiplicity

public GPProcessMultiplicity getProcessMultiplicity()
Get the process multiplicity.

Returns:
one of GPProcessMultiplicity constants.

setProcessMultiplicity

public void setProcessMultiplicity(GPProcessMultiplicity multiplicity)
Set the process multiplicity.

Parameters:
multiplicity - one of GPProcessMultiplicity constants.

getRuntimeViews

public Iterator getRuntimeViews()
Returns the list of all views that will be shown at runtime


setRuntimeViews

public void setRuntimeViews(List views)
Sets the list of all views that will be shown at runtime


setDefaultRuntimeView

public void setDefaultRuntimeView(String viewID)
Sets the default runtime view


getDefaultRuntimeView

public String getDefaultRuntimeView()
Returns the id of the default runtime view


getModifiableAdminRole

public IGPModifiableRoleInfo getModifiableAdminRole()
Returns the Admin Role for this process

Returns:

getModifiableOverseerRole

public IGPModifiableRoleInfo getModifiableOverseerRole()
Return the Overseer Role for this process

Returns:

getModifiableOwnerRole

public IGPModifiableRoleInfo getModifiableOwnerRole()
Return the Owner Role for this process

Returns:

addRole

public IGPModifiableRoleInfo addRole(String techName,
                                     String text,
                                     GPRoleType type)
                              throws GPInvocationException
Add a new role with given name, display text and role type. The technical name of the role should not contain whitespace and should be no longer than 32 chararcters. The name is unique across all roles that have already been defined for the block.

Parameters:
techName - role name
text - role text
type - the role type see GPRoleType constants
Returns:
the newly created and added to this block role
Throws:
GPInvocationException - if the techName or the type is unacceptable

isRestrictDefaultRolePrincipals

public boolean isRestrictDefaultRolePrincipals()
Denotes whether the principals that are assigned to the default roles should be restricted to the set of principals assigned in design time

Returns:
a boolean value

addRestrictionPrincipal

public void addRestrictionPrincipal(IPrincipal principal)
Adds a principal to the restriction list

Parameters:
principal - - the principal to be added

removeRestrictionPrincipal

public IPrincipal removeRestrictionPrincipal(String uniqueId)
Removes a principal with a given ID from the restriction list

Parameters:
uniqueId - - the unique ID of the principal to be removed
Returns:
the principal that was removed or null if not found

removeAllRestrictionPrincipals

public void removeAllRestrictionPrincipals()
Removes all principals from the restriction list


getRestrictionPrincipals

public Iterator getRestrictionPrincipals()
Retrieves all principals from the restriction list

Returns:
principles vector

isAutomaticallyStarted

public boolean isAutomaticallyStarted()
Returns true if the process should be automatically started By default, the process is not automatically started

Specified by:
isAutomaticallyStarted in interface IGPProcess
Returns:
boolean

setAutomaticallyStartedMode

public void setAutomaticallyStartedMode(boolean isAutomaticallyStarted)
Sets whether the process should be automatically started or not.



Copyright 2006 SAP AG Complete Copyright Notice