Simple Service
Table of Contents
Tutorial | Actifsource Tutorial – Simple Service |
---|---|
Required Time | • 70 Minutes |
Prerequisites | • Actifsource Tutorial – Installing Actifsource |
Goal | • Developing a generic domain model for a simple service infrastructure • Instantiating specific domain objects according to the generic domain • Writing code templates according to the generic domain • Generate code for every specific domain object |
Topics covered | • Creating a new actifsource project • Working with Diagram/Resource and Template Editor • Generating Code |
Notation | ↪ To do ⓘ Information • Bold: Terms from actifsource or other technologies and tools • Bold underlined: actifsource Resources • Monospaced : User input• Italics: Important terms in current situation |
Disclaimer | The authors do not accept any liability arising out of the application or use of any information or equipment described herein. The information contained within this document is by its very nature incomplete. Therefore the authors accept no responsibility for the precise accuracy of the documentation contained herein. It should be used rather as a guide and starting point. |
Contact | Actifsource AG Täfernstrasse 37 5405 Baden-Dättwil Switzerland www.actifsource.com |
Trademark | Actifsource is a registered trademark of Actifsource AG in Switzerland, the EU, USA, and China. Other names appearing on the site may be trademarks of their respective owners. |
Compatibility | Created with actifsource Version 5.8.5 |
Overview
- Create a new actifsource Project
- Structure your models using Packages
- Create Domain Classes in a Generic Domain Model for a Simple Service Infrastructure consisting of Services, Service-Calls, Arguments and Types:
- Create a Specific Domain Model using your own domain-specific type system
- Use Content Assist to create new domain-specific types or insert existing domain-objects
…
Part I: Create a new actifsource Project
- Enable the actifsource perspective
- Create and setup a new actifsource project “SimpleService”
- Familiarize yourself with the basic structure of an actifsource project
Create a new actifsource Project
Create and Setup a new actifsource Project “SimpleService”
Part II: Create a Generic Domain Model
- Setup an appropriate package structure
- Create a new diagram to model the generic domain model using generic classes and relations
Setup an Appropriate Package Structure
Create a new Diagram to Model the Generic Domain Model
Add Generic Classes
Add Generic Relations
Composition Relations
Association Relations
Adjust Cardinalities
Part III: Create a Specific Domain Model
- Create a package to store specific classes
- Create specific domain objects based on the generic domain model
Create a Package to Store Specific Domain Objects
Create Specific Domain Objects
Part IV: Use Code Templates to Generate Specific Code
- Create a generator template
- Enable Java functions for templates
- Write generic code based on the generic domain model and generate code on the fly
Create a Generator Template
Write Generic Code Based on the Generic Domain Model