TypeConverter无法从System.String nintex工作流转换为共享点

时间:2018-06-26 11:38:00

标签: sharepoint nintex-workflow

我尝试在Nintex工作流程中初始化集合变量

我将值设置为

router.delete('/removeactivity/:_id/:_pid', function (req, res) {         
    Activities.findByIdAndUpdate(
        { _id: req.params._id }, 
        { $pull: { Photos: { _id:req.params._pid } } },
        function(err,user) {
            if(err) {
                res.status(500).json(err);
            }
            res.status(200).json(user)
        }
    );        
})

发布工作流程时,出现以下错误

  

TypeConverter无法从System.String转换

格式不正确吗?

1 个答案:

答案 0 :(得分:0)

上面的值是有效的json而不是字符串,因此,如果要将此值用作字符串,请在下面使用

FileOutputStream fileOut = new FileOutputStream("Path.xls");
            HSSFWorkbook workbook = new HSSFWorkbook();
            HSSFSheet worksheet = workbook.createSheet("POI Worksheet");

            // index from 0,0... cell A1 is cell(0,0)
            HSSFRow row1 = worksheet.createRow((short) 0);

            HSSFCell cellA1 = row1.createCell((short) 0);
            cellA1.setCellValue("Hello");
            HSSFCellStyle cellStyle = workbook.createCellStyle();
            cellStyle.setFillForegroundColor(HSSFColor.GOLD.index);
            cellStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
            cellA1.setCellStyle(cellStyle);

            HSSFCell cellB1 = row1.createCell((short) 1);
            cellB1.setCellValue("Goodbye");
            cellStyle = workbook.createCellStyle();
            cellStyle.setFillForegroundColor(HSSFColor.LIGHT_CORNFLOWER_BLUE.index);
            cellStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
            cellB1.setCellStyle(cellStyle);

            HSSFCell cellC1 = row1.createCell((short) 2);
            cellC1.setCellValue(true);

            HSSFCell cellD1 = row1.createCell((short) 3);
            cellD1.setCellValue(new Date());
            cellStyle = workbook.createCellStyle();
            cellStyle.setDataFormat(HSSFDataFormat
                    .getBuiltinFormat("m/d/yy h:mm"));
            cellD1.setCellStyle(cellStyle);

              fileOut.close();

            FileOutputStream outFile =new FileOutputStream(new File("Path.xls"));
            workbook.write(outFile);
            outFile.close();