org.eclipse.stardust.engine.api.dto
Interface ActivityInstanceAttributes

All Superinterfaces:
org.eclipse.stardust.engine.api.runtime.ActivityInstanceContextAware, Serializable
All Known Implementing Classes:
ActivityInstanceAttributesImpl

public interface ActivityInstanceAttributes
extends Serializable, org.eclipse.stardust.engine.api.runtime.ActivityInstanceContextAware

This class contains attributes for an activity instance.

Author:
barry.grotjahn

Method Summary
 Note addNote(String text)
          Adds a Note for the given text
 long getActivityInstanceOid()
          Return the oid for the activity instance this attributes belongs to
 List<Note> getAddedNotes()
          Gets the notes which were currently added for this instance.See addNote(String)
 List<Note> getNotes()
          Gets the Note set for this activity instance
 QualityAssuranceResult getQualityAssuranceResult()
          Gets the QualityAssuranceResult for a specific activity instance.
 void setNotes(List<Note> notes)
          Sets notes to this instance
 void setQualityAssuranceResult(QualityAssuranceResult result)
          Sets the QualityAssuranceResult for a specific activity instance.
 

Method Detail

getActivityInstanceOid

long getActivityInstanceOid()
Return the oid for the activity instance this attributes belongs to

Specified by:
getActivityInstanceOid in interface org.eclipse.stardust.engine.api.runtime.ActivityInstanceContextAware
Returns:
the oid of the corresponding activity instance

addNote

Note addNote(String text)
Adds a Note for the given text

Parameters:
text -
Returns:
the note created

getAddedNotes

List<Note> getAddedNotes()
Gets the notes which were currently added for this instance.See addNote(String)

Returns:
the current added notes for this instance

getNotes

List<Note> getNotes()
Gets the Note set for this activity instance

Returns:
the notes set for this instance

setNotes

void setNotes(List<Note> notes)
Sets notes to this instance

Parameters:
notes - - the notes to set for this instance

setQualityAssuranceResult

void setQualityAssuranceResult(QualityAssuranceResult result)
Sets the QualityAssuranceResult for a specific activity instance.

Parameters:
result - - the result object to set

getQualityAssuranceResult

QualityAssuranceResult getQualityAssuranceResult()
Gets the QualityAssuranceResult for a specific activity instance. This will be null for non quality assurance activity instances (ActivityInstance.getQualityAssuranceState() != QualityAssuranceUtils.QualityAssuranceState.IS_QUALITY_ASSURANCE). or a newly created quality assurance instance.

Returns:
the QualityAssuranceResult


Copyright © 2017 Eclipse Stardust. All Rights Reserved.