Class ActionDefinitionMapperImpl
java.lang.Object
com.flowable.action.rest.service.api.mapper.definition.ActionDefinitionMapperImpl
- All Implemented Interfaces:
ActionDefinitionMapper
@Component public class ActionDefinitionMapperImpl extends java.lang.Object implements ActionDefinitionMapper
-
Constructor Summary
Constructors Constructor Description ActionDefinitionMapperImpl()
-
Method Summary
Modifier and Type Method Description ActionDefinitionResponse
toResponse(ActionDefinition actionDefinition, ActionDefinitionModel actionDefinitionModel, ActionTemplateService actionTemplateService, ScopedObjectWrapper scopedObject)
ActionDefinitionResponse
toResponse(ActionDefinition actionDefinition, ActionDefinitionModel actionDefinitionModel, ActionInstance actionInstance, ActionTemplateService actionTemplateService, ScopedObjectWrapper scopedObjectWrapper)
Create anActionDefinitionResponse
from the providedactionDefinition
,actionDefinitionModel
andactionInstance
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.action.rest.service.api.mapper.definition.ActionDefinitionMapper
toResponse
-
Constructor Details
-
ActionDefinitionMapperImpl
public ActionDefinitionMapperImpl()
-
-
Method Details
-
toResponse
public ActionDefinitionResponse toResponse(ActionDefinition actionDefinition, ActionDefinitionModel actionDefinitionModel, ActionTemplateService actionTemplateService, ScopedObjectWrapper scopedObject)Description copied from interface:ActionDefinitionMapper
Create anActionDefinitionResponse
from the providedactionDefinition
andactionDefinitionModel
. The {code actionTemplateService} andfilterContext
are used for enhancing the response with confirmation and title message.- Specified by:
toResponse
in interfaceActionDefinitionMapper
- Parameters:
actionDefinition
- the action definition that should be used for the mappingactionDefinitionModel
- the action definition model that should be used for the mappingactionTemplateService
- tha action template service that is used to create the messages and titlescopedObject
- the scoped object related to the action definition- Returns:
- the
ActionDefinitionResponse
-
toResponse
public ActionDefinitionResponse toResponse(ActionDefinition actionDefinition, ActionDefinitionModel actionDefinitionModel, ActionInstance actionInstance, ActionTemplateService actionTemplateService, ScopedObjectWrapper scopedObjectWrapper)Description copied from interface:ActionDefinitionMapper
Create anActionDefinitionResponse
from the providedactionDefinition
,actionDefinitionModel
andactionInstance
. The {code actionTemplateService} andfilterContext
are used for enhancing the response with confirmation and title message.- Specified by:
toResponse
in interfaceActionDefinitionMapper
- Parameters:
actionDefinition
- the action definition that should be used for the mappingactionDefinitionModel
- the action definition model that should be used for the mappingactionInstance
- the action used that should be used for the mappingactionTemplateService
- tha action template service that is used to create the messages and titlescopedObjectWrapper
- the scoped object related to the action definition- Returns:
- the
ActionDefinitionResponse
-