Outbound Transition for a Custom Activity

Avatar

Avatar

_Manoj_Kumar

MVP

Avatar

_Manoj_Kumar

MVP

_Manoj_Kumar
MVP

26-08-2020

Hello All,

 

I am trying to build a custom activity which will shorten the URLs. I have completed most of the parts. But I am not able to figure out how to create a temporary table for my activity and then pass the data to the next activity.

_Manoj_Kumar_0-1598444008351.png

 

My workflow just ends at the bitly activity and do no go beyond that.

 

Here is the transition code which I am using for this custom activity.

<element name="transitions">
      <element name="transition" ref="transition"/>
    </element>

 

Can anyone help me here?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

DavidKangni

MVP

Avatar

DavidKangni

MVP

DavidKangni
MVP

26-08-2020

Hi @_Manoj_Kumar ,

 

I think your schema is correct. If you want to continue the flow to the transition, you need to add the following in your activity js (I pasted 2 snippets

 

task.postEvent(task.transitionByName('transition'));
task.setCompleted();
return 0;

or

task.postEvent(task.transitionTransition())
task.setCompleted()

return 0;

 

Of line, I developed also a bit.ly URL Shortener using typologies rules. If you want we can discuss  about the best practices.

Thanks,

David 

Answers (0)