Package net.officefloor.activity.model
Interface ActivityChanges
-
- All Known Implementing Classes:
ActivityChangesImpl
public interface ActivityChanges
Changes that can be made to aActivityModel
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
-
-
Method Detail
-
addProcedure
Change<ActivityProcedureModel> addProcedure(java.lang.String procedureName, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType)
Adds anActivityProcedureModel
.- Parameters:
procedureName
- Name of theActivityProcedureModel
.resource
- Resource.sourceName
- Source name.procedure
-Procedure
name.properties
-PropertyList
procedureType
-ProcedureType
for theActivityProcedureModel
.- Returns:
Change
to add theActivityProcedureModel
.
-
refactorProcedure
Change<ActivityProcedureModel> refactorProcedure(ActivityProcedureModel procedureModel, java.lang.String procedureName, java.lang.String resource, java.lang.String sourceName, java.lang.String procedure, PropertyList properties, ProcedureType procedureType, java.util.Map<java.lang.String,java.lang.String> outputNameMapping)
Refactors anActivityProcedureModel
.- Parameters:
procedureModel
-ActivityProcedureModel
to refactor.procedureName
- Name of theActivityProcedureModel
.resource
- Resource.sourceName
- Source name.procedure
-Procedure
name.properties
-PropertyList
.procedureType
-ProcedureType
for theActivityProcedureModel
.outputNameMapping
- Mapping ofProcedureFlowType
name to existingActivityProcedureOutputModel
name to allow maintaining links to other items within theActivityModel
.- Returns:
Change
to refactor theActivityProcedureModel
.
-
removeProcedure
Change<ActivityProcedureModel> removeProcedure(ActivityProcedureModel procedureModel)
Removes anActivityProcedureModel
.- Parameters:
procedureModel
-ActivityProcedureModel
to remove.- Returns:
Change
to remove theActivityProcedureModel
.
-
addSection
Change<ActivitySectionModel> addSection(java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties, SectionType sectionType)
Adds anActivitySectionModel
.- Parameters:
sectionName
- Name of theActivitySectionModel
.sectionSourceClassName
-SectionSource
class name.sectionLocation
- Location of the section.properties
-PropertyList
.sectionType
-SectionType
for theActivitySectionModel
.- Returns:
Change
to add theActivitySectionModel
.
-
refactorSection
Change<ActivitySectionModel> refactorSection(ActivitySectionModel section, java.lang.String sectionName, java.lang.String sectionSourceClassName, java.lang.String sectionLocation, PropertyList properties, SectionType sectionType, java.util.Map<java.lang.String,java.lang.String> sectionInputNameMapping, java.util.Map<java.lang.String,java.lang.String> sectionOutputNameMapping)
Refactors anActivitySectionModel
.- Parameters:
section
-ActivitySectionModel
to refactor.sectionName
- New name of theActivitySectionModel
.sectionSourceClassName
- NewSectionSource
class name for theActivitySectionModel
.sectionLocation
- New location for theActivitySectionModel
.properties
- NewPropertyList
for theActivitySectionModel
.sectionType
-SectionType
of the refactorActivitySectionModel
.sectionInputNameMapping
- Mapping ofSectionInputType
name to existingActivitySectionInputModel
name to allow maintaining links to other items within theActivityModel
.sectionOutputNameMapping
- Mapping ofSectionOutputType
name to existingActivitySectionOutputModel
name to allow maintaining links to other items within theActivityModel
.- Returns:
Change
to refactor theActivitySectionModel
.
-
removeSection
Change<ActivitySectionModel> removeSection(ActivitySectionModel section)
Removes anActivitySectionModel
.- Parameters:
section
-ActivitySectionModel
to remove.- Returns:
Change
to remove theActivitySectionModel
.
-
addException
Change<ActivityExceptionModel> addException(java.lang.String exceptionClassName)
Adds anActivityExceptionModel
.- Parameters:
exceptionClassName
-Throwable
class name.- Returns:
Change
to add theActivityExceptionModel
.
-
refactorException
Change<ActivityExceptionModel> refactorException(ActivityExceptionModel exception, java.lang.String exceptionClassName)
Refactors anActivityExceptionModel
.- Parameters:
exception
-ActivityExceptionModel
to refactor.exceptionClassName
- NewException
class name.- Returns:
Change
to refactor theActivityExceptionModel
.
-
removeException
Change<ActivityExceptionModel> removeException(ActivityExceptionModel exception)
Removes anActivityExceptionModel
.- Parameters:
exception
-ActivityExceptionModel
to remove.- Returns:
Change
to remove theActivityExceptionModel
.
-
addInput
Change<ActivityInputModel> addInput(java.lang.String inputName, java.lang.String argumentType)
Add anActivityInputModel
.- Parameters:
inputName
- Name ofActivityInputModel
.argumentType
- Type of argument expected fromActivityInputModel
.- Returns:
Change
to addActivityInputModel
.
-
refactorInput
Change<ActivityInputModel> refactorInput(ActivityInputModel input, java.lang.String inputName, java.lang.String argumentType)
Refactors anActivityInputModel
.- Parameters:
input
-ActivityInputModel
to refactor.inputName
- Name ofActivityInputModel
.argumentType
- Type of argument expected fromActivityInputModel
.- Returns:
Change
to refactorActivityInputModel
.
-
removeInput
Change<ActivityInputModel> removeInput(ActivityInputModel input)
Removes anActivityInputModel
.- Parameters:
input
-ActivityInputModel
to remove.- Returns:
Change
to remove theActivityInputModel
.
-
addOutput
Change<ActivityOutputModel> addOutput(java.lang.String outputName, java.lang.String parameterType)
Add anActivityOutputModel
.- Parameters:
outputName
- Name ofActivityOutputModel
.parameterType
- Parameter type toActivityOutputModel
.- Returns:
Change
to addActivityOutputModel
.
-
refactorOutput
Change<ActivityOutputModel> refactorOutput(ActivityOutputModel output, java.lang.String outputName, java.lang.String parameterType)
Refactors anActivityOutputModel
.- Parameters:
output
-ActivityOutputModel
to refactor.outputName
- Name ofActivityOutputModel
.parameterType
- Parameter type toActivityOutputModel
.- Returns:
Change
to refactorActivityOutputModel
.
-
removeOutput
Change<ActivityOutputModel> removeOutput(ActivityOutputModel output)
Removes anActivityOutputModel
.- Parameters:
output
-ActivityOutputModel
to remove.- Returns:
Change
to remove theActivityOutputModel
.
-
linkProcedureNextToSectionInput
Change<ActivityProcedureNextToActivitySectionInputModel> linkProcedureNextToSectionInput(ActivityProcedureNextModel procedureNext, ActivitySectionInputModel sectionInput)
Links theActivityProcedureNextModel
to theActivitySectionInputModel
.- Parameters:
procedureNext
-ActivityProcedureNextModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeProcedureNextToSectionInput
Change<ActivityProcedureNextToActivitySectionInputModel> removeProcedureNextToSectionInput(ActivityProcedureNextToActivitySectionInputModel link)
Removes theActivityProcedureNextToActivitySectionInputModel
.- Parameters:
link
-ActivityProcedureNextToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkProcedureNextToProcedure
Change<ActivityProcedureNextToActivityProcedureModel> linkProcedureNextToProcedure(ActivityProcedureNextModel procedureNext, ActivityProcedureModel procedure)
Links theActivityProcedureNextModel
to theActivityProcedureModel
.- Parameters:
procedureNext
-ActivityProcedureNextModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeProcedureNextToProcedure
Change<ActivityProcedureNextToActivityProcedureModel> removeProcedureNextToProcedure(ActivityProcedureNextToActivityProcedureModel link)
Removes theActivityProcedureNextToActivityProcedureModel
.- Parameters:
link
-ActivityProcedureNextToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkProcedureNextToOutput
Change<ActivityProcedureNextToActivityOutputModel> linkProcedureNextToOutput(ActivityProcedureNextModel procedureNext, ActivityOutputModel output)
Links theActivityProcedureNextModel
to theActivityOutputModel
.- Parameters:
procedureNext
-ActivityProcedureNextModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeProcedureNextToOutput
Change<ActivityProcedureNextToActivityOutputModel> removeProcedureNextToOutput(ActivityProcedureNextToActivityOutputModel link)
Removes theActivityProcedureNextToActivityOutputModel
.- Parameters:
link
-ActivityProcedureNextToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkProcedureOutputToSectionInput
Change<ActivityProcedureOutputToActivitySectionInputModel> linkProcedureOutputToSectionInput(ActivityProcedureOutputModel procedureOutput, ActivitySectionInputModel sectionInput)
Links theActivityProcedureOutputModel
to theActivitySectionInputModel
.- Parameters:
procedureOutput
-ActivityProcedureOutputModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeProcedureOutputToSectionInput
Change<ActivityProcedureOutputToActivitySectionInputModel> removeProcedureOutputToSectionInput(ActivityProcedureOutputToActivitySectionInputModel link)
Removes theActivityProcedureOutputToActivitySectionInputModel
.- Parameters:
link
-ActivityProcedureOutputToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkProcedureOutputToProcedure
Change<ActivityProcedureOutputToActivityProcedureModel> linkProcedureOutputToProcedure(ActivityProcedureOutputModel procedureOutput, ActivityProcedureModel procedure)
Links theActivityProcedureOutputModel
to theActivityProcedureModel
.- Parameters:
procedureOutput
-ActivityProcedureOutputModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeProcedureOutputToProcedure
Change<ActivityProcedureOutputToActivityProcedureModel> removeProcedureOutputToProcedure(ActivityProcedureOutputToActivityProcedureModel link)
Removes theActivityProcedureOutputToActivityProcedureModel
.- Parameters:
link
-ActivityProcedureOutputToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkProcedureOutputToOutput
Change<ActivityProcedureOutputToActivityOutputModel> linkProcedureOutputToOutput(ActivityProcedureOutputModel procedureOutput, ActivityOutputModel output)
Links theActivityProcedureOutputModel
to theActivityOutputModel
.- Parameters:
procedureOutput
-ActivityProcedureOutputModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeProcedureOutputToOutput
Change<ActivityProcedureOutputToActivityOutputModel> removeProcedureOutputToOutput(ActivityProcedureOutputToActivityOutputModel link)
Removes theActivityProcedureOutputToActivityOutputModel
.- Parameters:
link
-ActivityProcedureOutputToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkSectionOutputToSectionInput
Change<ActivitySectionOutputToActivitySectionInputModel> linkSectionOutputToSectionInput(ActivitySectionOutputModel sectionOutput, ActivitySectionInputModel sectionInput)
Links theActivitySectionOutputModel
to theActivitySectionInputModel
.- Parameters:
sectionOutput
-ActivitySectionOutputModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeSectionOutputToSectionInput
Change<ActivitySectionOutputToActivitySectionInputModel> removeSectionOutputToSectionInput(ActivitySectionOutputToActivitySectionInputModel link)
Removes theActivitySectionOutputToActivitySectionInputModel
.- Parameters:
link
-ActivitySectionOutputToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkSectionOutputToProcedure
Change<ActivitySectionOutputToActivityProcedureModel> linkSectionOutputToProcedure(ActivitySectionOutputModel sectionOutput, ActivityProcedureModel procedure)
Links theActivitySectionOutputModel
to theActivityProcedureModel
.- Parameters:
sectionOutput
-ActivitySectionOutputModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeSectionOutputToProcedure
Change<ActivitySectionOutputToActivityProcedureModel> removeSectionOutputToProcedure(ActivitySectionOutputToActivityProcedureModel link)
Removes theActivitySectionOutputToActivityProcedureModel
.- Parameters:
link
-ActivitySectionOutputToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkSectionOutputToOutput
Change<ActivitySectionOutputToActivityOutputModel> linkSectionOutputToOutput(ActivitySectionOutputModel sectionOutput, ActivityOutputModel output)
Links theActivitySectionOutputModel
to theActivityOutputModel
.- Parameters:
sectionOutput
-ActivitySectionOutputModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeSectionOutputToOutput
Change<ActivitySectionOutputToActivityOutputModel> removeSectionOutputToOutput(ActivitySectionOutputToActivityOutputModel link)
Removes theActivitySectionOutputToActivityOutputModel
.- Parameters:
link
-ActivitySectionOutputToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkExceptionToSectionInput
Change<ActivityExceptionToActivitySectionInputModel> linkExceptionToSectionInput(ActivityExceptionModel exception, ActivitySectionInputModel sectionInput)
Links theActivityExceptionModel
to theActivitySectionInputModel
.- Parameters:
exception
-ActivityExceptionModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeExceptionToSectionInput
Change<ActivityExceptionToActivitySectionInputModel> removeExceptionToSectionInput(ActivityExceptionToActivitySectionInputModel link)
Removes theActivityExceptionToActivitySectionInputModel
.- Parameters:
link
-ActivityExceptionToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkExceptionToProcedure
Change<ActivityExceptionToActivityProcedureModel> linkExceptionToProcedure(ActivityExceptionModel exception, ActivityProcedureModel procedure)
Links theActivityExceptionModel
to theActivityProcedureModel
.- Parameters:
exception
-ActivityExceptionModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeExceptionToProcedure
Change<ActivityExceptionToActivityProcedureModel> removeExceptionToProcedure(ActivityExceptionToActivityProcedureModel link)
Removes theActivityExceptionToActivityProcedureModel
.- Parameters:
link
-ActivityExceptionToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkExceptionToOutput
Change<ActivityExceptionToActivityOutputModel> linkExceptionToOutput(ActivityExceptionModel exception, ActivityOutputModel output)
Links theActivityExceptionModel
to theActivityOutputModel
.- Parameters:
exception
-ActivityExceptionModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeExceptionToOutput
Change<ActivityExceptionToActivityOutputModel> removeExceptionToOutput(ActivityExceptionToActivityOutputModel link)
Removes theActivityExceptionToActivityOutputModel
.- Parameters:
link
-ActivityExceptionToActivityOutputModel
.- Returns:
Change
to remove the link.
-
linkInputToSectionInput
Change<ActivityInputToActivitySectionInputModel> linkInputToSectionInput(ActivityInputModel input, ActivitySectionInputModel sectionInput)
Links theActivityInputModel
to theActivitySectionInputModel
.- Parameters:
input
-ActivityInputModel
.sectionInput
-ActivitySectionInputModel
.- Returns:
Change
to make the link.
-
removeInputToSectionInput
Change<ActivityInputToActivitySectionInputModel> removeInputToSectionInput(ActivityInputToActivitySectionInputModel link)
Removes theActivityInputToActivitySectionInputModel
.- Parameters:
link
-ActivityInputToActivitySectionInputModel
.- Returns:
Change
to remove the link.
-
linkInputToProcedure
Change<ActivityInputToActivityProcedureModel> linkInputToProcedure(ActivityInputModel input, ActivityProcedureModel procedure)
Links theActivityInputModel
to theActivityProcedureModel
.- Parameters:
input
-ActivityInputModel
.procedure
-ActivityProcedureModel
.- Returns:
Change
to make the link.
-
removeInputToProcedure
Change<ActivityInputToActivityProcedureModel> removeInputToProcedure(ActivityInputToActivityProcedureModel link)
Removes theActivityInputToActivityProcedureModel
.- Parameters:
link
-ActivityInputToActivityProcedureModel
.- Returns:
Change
to remove the link.
-
linkInputToOutput
Change<ActivityInputToActivityOutputModel> linkInputToOutput(ActivityInputModel input, ActivityOutputModel output)
Links theActivityInputModel
to theActivityOutputModel
.- Parameters:
input
-ActivityInputModel
.output
-ActivityOutputModel
.- Returns:
Change
to make the link.
-
removeInputToOutput
Change<ActivityInputToActivityOutputModel> removeInputToOutput(ActivityInputToActivityOutputModel link)
Removes theActivityInputToActivityOutputModel
.- Parameters:
link
-ActivityInputToActivityOutputModel
.- Returns:
Change
to remove the link.
-
-