UNPKG

@daedalus/wso2

Version:

This is a set of tools to help connect and manage interactions with various WSO2 products. Please see README.MD for more details.

25 lines (21 loc) 979 B
const mongoose = require("mongoose"); var Schema = mongoose.Schema; var ObjectId = Schema.ObjectId; const ProcessDefinitionSchema = new Schema({ id: { type: String, required: true }, url: { type: String, required: true }, key: { type: String, required: true }, version: { type: Number, required: true }, name: { type: String, required: true }, description: { type: String, required: true }, deploymentId: { type: String, required: true }, deploymentUrl: { type: String, required: true }, resource: { type: String, required: true }, diagramResource: { type: String, required: true }, category: { type: String, required: true }, graphicalNotationDefined: { type: Boolean, required: true }, suspended: { type: Boolean, required: true }, startFormDefined: { type: Boolean, required: true } }); const ProcessDefinition = mongoose.model("WSO2_BPS_ProcessDefinitions", ProcessDefinitionSchema); module.exports = ProcessDefinition;