Jbpm 5.4를 사용하여 응용 프로그램을 만들고 있습니다. 모든 사용자 작업에는 작업 양식이 있으며 Rest api를 통해 경쟁했습니다. 모든 것이 잘 작동하고 데이터가 테이블로 이동합니다. 하지만 jbpm api가 이전 상태에서 사용자가 채운 데이터를 얻는 방법을 알고 싶습니다. 콘텐츠 테이블과 관련된 데이터를 먹었습니까? 누구든지 내가 채워진 데이터를 직접 얻는 방법을 설명 할 수 있습니까? 나는 다음을 시도했다.
try {
BlockingGetContentResponseHandlerresponseHandler=new BlockingGetContentResponseHandler();
client.getContent(contentId, responseHandler);
Content content = responseHandler.getContent();
byte[] byteContent = content.getContent();
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteContent);
ObjectInputStream inputStream = new ObjectInputStream(byteArrayInputStream);
obj = inputStream.readObject();
} catch (Throwable t) {
t.printStackTrace();
}
다음은 jbpm-console이 태스크 데이터를 가져 오는 데 사용하는 코드입니다. https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-gwt/jbpm-gwt-form/src/main/java/ org / jbpm / integration / console / forms / TaskFormDispatcher.java
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다