How to match segments between custom automatic actions?

Hi! I am implementing some automatic actions using WorldServer SDK 11.7.3 and I need to create a mapping between segments and other entities to use across automatic actions.

I was thinking of using indices of the segments as their identifiers. Is their order guaranteed to be the same in different automatic actions? And is there another way to achieve this if not?

The code looks something like this:

```

WSAssetTranslation translation = assetTask.getAssetTranslation();

Iterator segments = translation.textSegmentIterator();

int index = 0;

while (segments.hasNext()) {

  WSTextSegmentTranslation segment = (WSTextSegmentTranslation) segments.next();

  // do stuff with segment <index> which is supposedly the same in both automatic actions

  index++;

}

```

Parents Reply Children
No Data