{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • General
    • Edge/API Management
    • Developer Portal
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
avatar image
0
Question by Harsh Sharma · May 23, 2017 at 06:38 AM · 151 Views apigee edgeapi managementapigeemavenshared flowsflow hooks

How to check shared flow existence in Environment Flow Hook through maven plugin ?

Hello Guys,

I have a scenario, where i am bound not to use Apigee UI tool. So following work should be done through the maven plugin only.

Case Study :

First we check a shared flow named DemoFlow exists in the Environment Flow Hook under Pre-Target Flow.

If the shared flow exists

Then do nothing, even do not update the existing shared flow DemoFlow.

If the shared flow does not exist

Then deploy the shared flow DemoFlow as provided with maven plugin, then set it under the Pre-Target Flow of Environment Flow Hook.

Comment
Add comment Show 1
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sarthak ♦ · May 23, 2017 at 01:48 PM 0
Link

@Sai Saran Vaidyanathan any thoughts on how this can be done?

Close

1 Answer

· Add your answer
  • Sort: 
avatar image
0

Answer by Sai Saran Vaidyanathan   · May 23, 2017 at 07:54 PM

Hi @Harsh Sharma

As of now, we do not have Flow hooks enabled in any of our maven plugins (however we are discussing about it)

For your scenario, you will have to write a customized script - something like this

1) Use the "update" option of the maven deploy plugin to deploy the shared flow, so that the revision does not change but make sure the source code of the shared flow in your Version control is up to date

2) Then script calls the Mgmt API to add the shared flow to the flow hook - check "Attach a shared flow to a flow hook" for more details here

To avoid my first point above, you can also have the script first check the shared flow using the GET shared flow call and then call the maven script if sharedflow is not available.

The reason I recommended deploy is to make sure that the shared flow is deployed. It is required that its deployed to include in the Flow hook.

Hope this clarifies.

Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sai Saran Vaidyanathan ♦   · May 26, 2017 at 06:32 PM 0
Link

Hi @Harsh Sharma - Did that clarify ? Any followup questions ? Can you accept this if it answered your question ?

avatar image Prashant Singh · Dec 17, 2018 at 07:10 PM 0
Link

@Sai Saran Vaidyanathan I also have a similar requirement at my end. So, ciuld you please confirm if the maven deploy plugin now supports flow hooks enablement? And, if so, what is the exact process.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 5 attachments (including images) can be used with a maximum of 5.0 MB each and 25.0 MB total.

Follow this Question

Answers Answers and Comments

69 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to support target pre and post flow in shared-flow in apigee ? 1 Answer

What kind of error is MojoException : 404 Not Found in maven proxy deployment ? 3 Answers

Removing the suffix "{myorg}-test.apigee.net" from the Project base Path while creating API Proxy 1 Answer

Creating an org get associated to all pod? 2 Answers

Can We use apigee webhooks without monetization license? 0 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • General
  • Edge/API Management
  • Developer Portal
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges