there's a mistake in the linepatExecContext.setProcessDataMapValue("/process_data/attachmentsmap",attachment MapDoc);}You have a space in the name of the map variable.Just out of curiousity, where does e.printStackTrace() get displayed? It might be more useful to, in your catch, save the stack trace...