• United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

IBM BPM YAML Parser issues

310001U4XM gravatar image
Question by jtm_wf  (221) | Nov 08, 2018 at 09:31 AM bpmibm bpmswaggeryaml

PRODUCT: IBM BPM v8.6

We have a YAML file (valid according to editor.swagger.io) with a definition for an object called "StatusMessage" (see below).

When we import this YAML to WebPD, the StatusMessage object is discovered correctly, but the "type" property has a type of "typeType" in the StatusMessage BO instead of a type of "string" (which is what the YAML specificies).

Has anyone else encountered a similar issue consuming a Swagger 2.0 definition for an external REST operation? We know that "type" is a reserved word for Swagger but apparently it is still OK to use a reservered word as a property name.

Something else that is sort of related - BPM discovers string($date-time) properties as Time objects in BPM...which seems kind of strange right? We know Swagger doesn't have a true "date" object, but why wouldn't BPM put string($date) and string($date-time) into just Date objects?

YAML Sample

 StatusMessage:
     type: object
     properties:
       type:
         description: >-
           Identifies the class of the message.Allowed values are
           INFORMATION,WARNING and ERROR.
         enum:
           - INFORMATION
           - WARNING
           - ERROR
         type: string
       code:
         description: A code identifies the result of processing.
         type: string
       subCode:
         description: >-
           The sub-code further identifies the result of processing
           within the more general category provided by code.
         type: string



People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

2 answers

  • Sort: 
100000BAB0 gravatar image
Accepted answer

Answer by Ute T (41) | Nov 14, 2018 at 06:52 AM

This type "typeType" might look somehow strange but is correct. This is the implementation of the enum specified for the property "type". alt text


enum.jpg (31.9 kB)
Comment
jtm_wf

People who like this

  1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
310001U4XM gravatar image

Answer by jtm_wf (221) | Dec 27, 2018 at 06:28 PM

If anyone is curious it looks like the culprit was the source system we were calling. The YAML had each enum in ALL CAPS but the source system wasn't following its own API spec and was trying to send camel-case values. So the fact that the parameter was discovered as typeType didn't really seem to matter. We were able to work around this with the JavaScript REST option but once the source system fixed their end, the out-of-the-box connector has been working just fine.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

173 people are following this question.

Answers

Answers & comments

Related questions

Is there a Swagger definition of the Process Federation Server REST API? 1 Answer

Is there a Swagger UI for BPM on Cloud? 1 Answer

how to upgrade IBM BPM WAS from 8.5.x.x to WAS 9.0.x.x 1 Answer

Uprgadeing Fix pack or IR for IBM BPM 1 Answer

Swagger file too large to upload? > 130kb 0 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • DataPower
  • Decision Optimization
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges