Hi arunpatidar
I had already referred same link but not covered if workflow variable type is "Document"
Here log statements I tried but not getting the value what i am looking for
@Overridepublic void execute(WorkItem workItem
, WorkflowSession workflowSession
, MetaDataMap metaDataMap)
throws WorkflowException {
log.info(
"AWS document upload Workflow Process class is running")
;
if (
null != awsOperationsService){
log.info(
"AWSOperationsService class is resolved")
;
}
for (Map.Entry entry : metaDataMap.entrySet()){
log.info(
"Key : {}", entry.getKey())
;
log.info(
"Value : {}", entry.getValue())
;
log.info(
"Value : {}", entry.getValue().getClass())
;
}
log.info(
"Class type for pdfdemo is {}", workItem.getWorkflowData().getMetaDataMap().get(
"pdfdemo").getClass().toString())
;
log.info(
"Class type for xmldemo is {}", workItem.getWorkflowData().getMetaDataMap().get(
"xmldemo").getClass().toString())
;
Document xmlData = workItem.getWorkflowData().getMetaDataMap().get(
"xmldemo", Document.
class)
;
log.info(
"XML Data is : {}", xmlData.toString())
;
Document pdfDoc = workItem.getWorkflowData().getMetaDataMap().get(
"pdfdemo", Document.
class)
;
log.info(
"PDF Doc is : {}", pdfDoc.toString())
;
log.info(
"AWS document upload Workflow Process class execution complete")
;
}