Class ConvertActivityTemplateToActivity
- java.lang.Object
-
- de.aristaflow.adept2.core.changeoperations.ConvertActivityTemplateToActivity
-
public class ConvertActivityTemplateToActivity extends Object
Helper class for the conversion of an activity template to an activity- Author:
- Martin Jurisch, Kevin Goeser
-
-
Constructor Summary
Constructors Constructor Description ConvertActivityTemplateToActivity()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
convertTemplateParameters(ProcessModelFactory pmf, ActivityTemplate activityTemplate, Collection<ProcessModelParameter> inParameters, Collection<ProcessModelParameter> outParameters)
Converts the "activity model parameters" of the template to "process model parameters" for the instance.static Activity
performConversion(ProcessModelFactory pmf, SessionToken session, ActivityTemplate at, String instanceName)
converts an activity template to an activity
-
-
-
Field Detail
-
logger
protected static final Logger logger
the logger for this class
-
-
Method Detail
-
performConversion
public static Activity performConversion(ProcessModelFactory pmf, SessionToken session, ActivityTemplate at, String instanceName)
converts an activity template to an activity- Parameters:
pmf
- The process model factory needed to create the activitysession
- The session which is used to check for access rights on this method.at
- the template to convertinstanceName
- the instance name for the registry- Returns:
- the activity (respectively its super class object)
-
convertTemplateParameters
public static void convertTemplateParameters(ProcessModelFactory pmf, ActivityTemplate activityTemplate, Collection<ProcessModelParameter> inParameters, Collection<ProcessModelParameter> outParameters)
Converts the "activity model parameters" of the template to "process model parameters" for the instance.- Parameters:
pmf
- The process model factory to useactivityTemplate
- The template whose parameters are to convertinParameters
- The set to add the input parameters tooutParameters
- The set to add the output parameters to
-
-