Skip to content
Discussion options

You must be logged in to vote

I am not a mutiny expert, but hopefuly I can help a bit.

I think you can try do something like the code below. Obviously I have not tested since I do not have your code. I also know nothing about eventBus and such.

    protected Uni<Datagraph> createAnEdge(String c_mkey, String p_mkey) {

        // Build the request message packet bean
        MessagePacket messagePacket = new MessagePacket(c_mkey, p_mkey);

        // Make the request
        return  eventBus.request("bus01F", messagePacket).onItem().transformToUni(message -> Uni.createFrom().item(this.getDataGraphFromMessage(message)));
    }

You can add a onFailure() then do whatever you need in the failure case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@flowt-au
Comment options

Answer selected by flowt-au
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants