Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • 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
This question was closed Nov 20, 2014 at 02:36 PM by Matt Beshara for the following reason:

The question is answered, right answer was accepted

Can I create and modify generic processes via REST API?

270007C09Q gravatar image
Question by Matt Beshara  (192) | Oct 27, 2014 at 08:43 AM urbancodeapiudeployrestprocessgeneric

We are using the REST API to automate the onboarding of applications to UCD 6.1.0.1.

It doesn't appear that the documented /cli API can create generic processes nor add/remove them from teams. I could see that capability being similar to creating an application process or component process, where you send a PUT request with a JSON representation of the process as the request payload.

I have two questions: does this sound doable from the undocumented REST API(s), and does this sound like a reasonable RFE?

Thank you,

Matt

NathanStohlmann

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

1 reply

  • Sort: 
11000065TV gravatar image
Accepted answer

Answer by Tim McMackin (1697) | Oct 27, 2014 at 02:15 PM

You could do this with the API, though it would take some work. You can get a WADL file of the undocumented REST API methods by going to the following URL:

http://hostname:port/rest/application.wadl

These APIs are not documented because they're intended to be used by the product UI, not by you and me. Still, you can use them to automate the server.

In that API, there is a "process" resource that has methods that can be used to create and update generic processes. For example, to create a generic process, use a command like this example:

curl -k -u admin:admin "http://hostname:port/rest/process" -X PUT -H 'Content-Type: application/json' -d @newProcess.json

where newProcess.json looks something like this:

{"name":"newprocess","description":"","workingDir":"${p:resource/work.dir}/${p:process.name}","notificationSchemeId":"","properties":{"workingDir":"${p:resource/work.dir}/${p:process.name}"},"teamMappings":[]}

Tip: A simple way to see how the API is being used is to enable a browser extension that tracks requests, such as Firebug. Then you can create and edit a process in the UI and see what REST requests are being sent. With that info, you can create your own REST requests to be used outside of the UI. So to learn how to edit existing processes, open a process in the editor and have a look at the requests that are sent.

Hopefully that helps. Let us know if you have other questions.

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270007C09Q gravatar image Matt Beshara (192)   Oct 27, 2014 at 02:23 PM 0
Share

Thanks Tim!

Follow this question

No one has followed this question yet.

Answers

Answers & comments

Related questions

Pass Property Values to Application Process from Generic Process. 3 Answers

Authentication UrbanCode Deploy via REST API with XMLHttpRequest() in javascript 0 Answers

How can I call other component's process 1 Answer

How do I use a token with the uDeploy REST API? 5 Answers

uDeploy - Approval Execution Process 1 Answer

  • 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
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • 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
  • PartnerWorld Developer Support
  • 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