KogitoProcessExtension implements Extension { @Override public Set<String> getKeys() { return ALL_KEYS; } KogitoProcessExtension(); String getKogitoProcessInstanceId(); void setKogitoProcessInstanceId(String kogitoProcessInstanceId); String getKogitoRootProcessInstanceId(); void setKogitoRootProcessInstanceId(String kogitoRootProcessInstanceId); String getKogitoProcessId(); void setKogitoProcessId(String kogitoProcessId); String getKogitoRootProcessId(); void setKogitoRootProcessId(String kogitoRootProcessId); String getKogitoAddons(); void setKogitoAddons(String kogitoAddons); String getKogitoParentProcessinstanceId(); void setKogitoParentProcessinstanceId(String kogitoParentProcessinstanceId); String getKogitoProcessInstanceState(); void setKogitoProcessInstanceState(String kogitoProcessInstanceState); String getKogitoReferenceId(); void setKogitoReferenceId(String kogitoReferenceId); @Override void readFrom(CloudEventExtensions extensions); @Override Object getValue(String key); @Override Set<String> getKeys(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String PROCESS_INSTANCE_ID; static final String ROOT_PROCESS_INSTANCE_ID; static final String ROOT_PROCESS_ID; static final String PROCESS_INSTANCE_STATE; static final String PROCESS_ID; static final String ADDONS; static final String PARENT_PROCESS_INSTANCE_ID; static final String REF_ID; }
@Test void verifyKeysAreSet() { final KogitoProcessExtension kpe = ExtensionProvider.getInstance().parseExtension(KogitoProcessExtension.class, getExampleCloudEvent()); assertThat(kpe.getKeys()).isNotEmpty(); }