/
Generating Code for Activities

Generating Code for Activities

Activities are used to structure the internal dynamic aspects of a component and help to achieve a better testability.

 

Diagram above shows the output that is generated by JEAF Generator from activities (stereotype «JEAFActivity») in the UML model.

  • Activity Interface (CreateCustomerActivity)
    JEAF Generator will create an activity interface for every activity of from the UML model. This interface will have a single operation with the in- and output parameters according to the model. The interface is not intended to be edited and so it will be written to src-gen.

  • Activity Implementation (CreateCustomerActivityImpl)
    JEAF Generator will also generate an implementation class for every activity. This class will implement the activity interface but of course will only have an empty implementation. As this class needs to be implemented it will be written to src.

 

For further information please refer to:

Source Code Examples

Related content

Generating Code for Actors / Roles and Authorization
Generating Code for Actors / Roles and Authorization
Read with this
«JEAF Activity»
«JEAF Activity»
More like this
JEAF Generator Sample
JEAF Generator Sample
Read with this
How to model Activities
How to model Activities
More like this
Generating Code for Components
Generating Code for Components
More like this
Generating Code for Service Providers
Generating Code for Service Providers
More like this