Greetings,
I would like to know how to add information into a type fragment during the importation of an object, ideally using the default Custom Import Base Content interaction provided by the built-in Import Action Flow in XCP 2.1.
Note: it is important that the information from the fragment is added during the importation process (and not after) because we have events which will be using that data when they are triggered on the Object Imported UI Event.
My data model has a content type with an optional type fragment (therefore, in the Model definition, I should not check the option under Runtime/Always attach type fragment during object creation).
I want to import new documents using this model and (in this particular action flow) attach and populate the type fragment to these documents. For this I have created a fairly basic Import Action Flow. In its Model page, it has a convenient default Custom Import Base Content interaction which I use to import my documents. Under the inputs tab, it takes the Outputs.Model from my import page fragment.
Now, my problem is to populate the type fragment from the Outputs of that import page fragment. I went into the Data tab, in the Page Fragments Outputs. The model found there has only the basic type for the objects I want to import with none of the fields for the type fragments. It does however have a property named fragments. This property is of type string and I found no documentation or example to help me populate it.
If you know the syntax for this property then perhaps that would solve my problem.
My only solution so far is to re-write the Custom Import Base Content interaction from scratch into a custom Stateless process. That process would first import the object(s) then 'Attach type fragment'. It'll be long and tedious and I feel I should be able to use the tools out of the box to do such a simple task.
Note: we are using XCP v. 2.1.0120.5621
Thank you