Property file jawetypes.properties

Here are described elements used in TWE: their types and information about them (what should be their color).

For example, the following section defines the properties for an activity which type is BlockActivity

#JaWETypes.ActivityType.Id.block = ACTIVITY_BLOCK
#JaWETypes.ActivityType.LangDepName.block = BlockActivityKey
#JaWETypes.ActivityType.Icon.block = org/enhydra/jawe/images/blockactivity.gif
#JaWETypes.ActivityType.Color.block = R=255,G=165,B=121
#JaWETypes.ActivityType.XPDLTemplate.block = 

Changing the color used to represent this kind of activity will have effect only to the graph component.

There is another advanced feature of TWE which can be utilized through jawetypes.properties file. You can define custom XPDL object types, and even provide the XPDL template fragment to define properties they should have. E.g. if you want to define new type of activity called loop activity, you can have the following configuration:

JaWETypes.ActivityType.Id.loop = ACTIVITY_LOOP
JaWETypes.ActivityType.LangDepName.loop = LoopKey
JaWETypes.ActivityType.Icon.loop = org/enhydra/jawe/samples/loopactivity/
images/loopactivity.gif
JaWETypes.ActivityType.Color.loop = R=255,G=155,B=15
JaWETypes.ActivityType.XPDLTemplate.loop = sampleactloop.xml

where sampleactloop.xml have to be placed under templates subfloder of the configuration you are using. The content of sampleloop.xml file can be something like:

<Activity>
   <BlockActivity BlockId=""/>
   <ExtendedAttributes>
      <ExtendedAttribute Name="LoopCondition" Value=""/>
      <ExtendedAttribute Name="LoopType" Value="While"/>
      <ExtendedAttribute Name="BackToPool" Value="false"/>
      <ExtendedAttribute Name="SetTemporary" Value="false"/>
   </ExtendedAttributes>
</Activity>

To define custom language strings, you should edit jawelanguagemisc.properties file in the target configuration folder, and add appropriate [key,value] pairs. For the previous example, you should add a only following [key,value] par:

LoopKey = Loop

If you need language specific entries for other languages, you just put corresponding property file into the target configuration folder, and define the same property. E.g. you define jawelanguagemisc_de.properties file if you need German translation.

This newly defined activity will automatically appear in the Graph's component toolbox ones you start TWE for this configuration mode.