Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class DataSenseResolver implements TypeKeysResolver {
@Override
public String getCategoryName() {
return "DataSenseResolver";
}
@Override
public Set<MetadataKey> getKeys(MetadataContext metadataContext) {
Set<MetadataKey> keys = new HashSet<>();
MetadataKeyBuilder key1 = MetadataKeyBuilder.newKey(ProcessKeys.KEY1.toString());
key1.withChild(MetadataKeyBuilder.newKey(SubProcessAKeys.SUB_KEY_1A.toString()).build());
key1.withChild(MetadataKeyBuilder.newKey(SubProcessAKeys.SUB_KEY_2A.toString()).build());
key1.withChild(MetadataKeyBuilder.newKey(SubProcessAKeys.SUB_KEY_3A.toString()).build());
keys.add(key1.build());
MetadataKeyBuilder key2 = MetadataKeyBuilder.newKey(ProcessKeys.KEY2.toString());
key2.withChild(MetadataKeyBuilder.newKey(SubProcessBKeys.SUB_KEY_1B.toString()).build());
key2.withChild(MetadataKeyBuilder.newKey(SubProcessBKeys.SUB_KEY_2B.toString()).build());
key2.withChild(MetadataKeyBuilder.newKey(SubProcessBKeys.SUB_KEY_3B.toString()).build());
keys.add(key2.build());
MetadataKeyBuilder key3 = MetadataKeyBuilder.newKey(ProcessKeys.KEY3.toString());
key3.withChild(MetadataKeyBuilder.newKey(SubProcessCKeys.SUB_KEY_1C.toString()).build());
key3.withChild(MetadataKeyBuilder.newKey(SubProcessCKeys.SUB_KEY_2C.toString()).build());
key3.withChild(MetadataKeyBuilder.newKey(SubProcessCKeys.SUB_KEY_3C.toString()).build());
keys.add(key3.build());
return keys;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.