By default, the Transformer's output schema will always be inherited from the input schema. When the schema is inherited, you can only perform limited operations such as adding and editing attributes; you cannot modify the order of the attributes. If you want to have full control over an output schema, you can regenerate it without inheriting the input schema.
Note: Regenerating the output schema applies only to the Transformer and File Update
processes.
To edit an output schema
-
In the Schema Editor, select Regenerate Output Schema.
-
Select the input in the drop-down list of input schema. If there is more than one input, select which of the inputs is to be used as the basis for the output schema.
-
Select Inherit schema or Edit schema and click Apply. If you select Inherit schema, the input schema is copied to the output schema. If you select Edit schema, you will see that the output attributes are no longer inherited.
-
Edit the output schema and click Finish.
-
From the Navigation or Project View, right-click the process and select Apply Schema Changes.
If you use the Edit schema option, then any changes that you subsequently make to preceding schemas will no longer be applied to the edited output schema. For example, if you insert a Transformer with an edited schema into your process flow, then any changes that you make to the schemas of the preceding processes will not be applied to the new Transformer's output schema.
If you regenerate the schema by switching from Edit schema to Inherit schema or vice versa, you lose any Parser inputs that you had specified and you will need to re-specify them.