.entity(ProcessInstanceImpl.class) .property("commentFeed", ElementType.METHOD).indexEmbedded() .property("involvedUsers", ElementType.METHOD).field().name(ProcessInstanceIndex.INVOLVED_USER) .property("lastUpdate", ElementType.METHOD).field().name(ProcessInstanceIndex.LAST_UPDATE) .index(Index.UN_TOKENIZED).dateBridge(Resolution.MILLISECOND) .entity(RuntimeRecordImpl.class) .property("processDefinitionUUID", ElementType.METHOD).field().name(ProcessInstanceIndex.PROCESS_DEFINITION_UUID) .bridge(UUIDFieldBridge.class) .entity(CommentImpl.class).indexed().indexName("comment") .property("dbid", ElementType.FIELD).documentId().name(CommentIndex.DBID) .entity(Comment.class) .property("taskCandidates", ElementType.METHOD).field().name(ActivityInstanceIndex.CANDIDATE) .bridge(StringSetFieldBridge.class) .entity(ActivityInstanceImpl.class) .property("taskCandidates", ElementType.METHOD).field().name(ActivityInstanceIndex.CANDIDATE) .bridge(StringSetFieldBridge.class) .property("expectedEndDate", ElementType.METHOD).field().name(ActivityInstanceIndex.EXPECTED_END_DATE) .index(Index.UN_TOKENIZED).dateBridge(Resolution.MILLISECOND) .entity(ActivityInstance.class) .property("activityName", ElementType.METHOD).field().name(ActivityInstanceIndex.NAME) .property("state", ElementType.METHOD).field().name(ActivityInstanceIndex.STATE) .entity(RoleImpl.class).indexed().indexName("role") .property("dbid", ElementType.FIELD).documentId().name(RoleIndex.DBID) .property("name", ElementType.FIELD).field().name(RoleIndex.NAME)