Skip to main content

Extended variant handling (variant codes)

Watch video: Create variant codes

 

Instead of manually selecting/de-selecting task for different variants, it’s possible to use a more advanced product specification letting AVIX  creating the specific variant.

variant code is a symbol or a designation for a configuration option for the product. The code can symbolise widely varying things, such as e.g. a particular market (EU, USA, Japan etc.) or an engine option on a car (gasoline, diesel).

The basic idea then is that a variant code symbolises one or more changes to the product or to the process.

A variant can, but does not necessarily, belong to a variant group. A variant group consists of several variant codes that cannot occur simultaneously. Taking market as an example once again, Market is therefore a variant group and EU, USA and Japan are variant codes within this group. The same applies to engine options. A car has either gasoline or a diesel engine.

Variant codes are created in AVIX  in the tab called Variant Codes


Variant groups are added using the control identified by this
icon image-1648796772502.png

Variant codes are added using the control identified by this icon image-1648796782669.png


Variant expressions


Each task in AVIX  can carry a so-called variant expression. A variant expression describes the circumstances in which in a task will be valid.

The simplest form of variant expression consists of just a variant code:
E.g. EU

… which is read as: This task is to be carried out if the product is intended for a customer in the EU

Different variant codes can also be combined using operators.
E.g. EU / Japan

This task will be carried out if the product is intended for EU or Japan. If the product is intended for the USA, the task will not therefore be regarded as valid since the variant code USA belongs to the same variant group as the EU and Japan.

The available operators are:

/           OR
;           AND
!           NOT

In addition, sub-expressions can be grouped using parenthesis. An advanced expression may appear as follows:

E.g. (EU / Japan) ; Gasoline
This task is valid if the car is intended for the EU or Japan and has a gasoline engine. A Japanese car with a diesel engine is therefore not valid whereas one with a gasoline engine is.


From AVIX version 4.7 there is a "problems" view section where different problems can be found. E.g. a process that uses an undefined variant code


Override variant rule

This only applies to processes that are linked from the process library, not for tasks that are created directly in the Method tree structure.

A task can be used in more than one context, and the variant rule valid in one context is not necessarily valid in another context. To support this, it is possible to override the variant rule and replace it with another variant rule that is only valid in the context in which it exists. 


Product specifications


Product specification describes the appearance of a particular configuration/variant of the product. A product specification is created by selecting the option “Create Variant rule filter” from the Variant menu in the Balance tree view.


Product specification describes the appearance of a particular configuration/variant of the product. A product specification is created by selecting the option “Create Variant rule filter” from the Variant menu in the Balance tree view.

image-1649066539138.png

The specification itself works by selecting a variant code from each variant group:

The tree and the Balance graph now filter out the tasks to leave only those that are valid for the configuration in question by evaluating the variant expression for each task.