Add live events to a workflow instance - workflow

I'm studying different Worfklow/BPMN through a functional and technical focus. I have a question about Alfresco Activiti : is had live event/tasks to the instance of a workflow.
For example : I create the workflow instance "MyAffair", from the workflow pattern "Affairs". But I want to add a specific event to this instance (for example : a specific negotiation round). And I want this event to be stored by Activiti.
Is it possible to do this natively ?
If I look in the API documentation, I have an Event object, but I only can get info. I cannot create new Event.
Thank you :)

Related

ChatBot with conditional response flow - Rasa Open Source

I'm working on a Rasa (Open Source) project, I need to represent the diagram flow in a chatbot.
The main problem is following the conditional flow as the user can say yes or no and modify the flow of the conversation.
I would like to know how I could build a chatbot that contemplates all the possibilities represented in the diagram and the others that are outside it, using Rasa.
In other words, a chatbot that responds to the user according to his previous response.
Please.
flowchart
A "solution" I found was to create a story for each possible path, but it is "unfeasible" due to the number of stories. (there are 9 other diagrams like this one).
Regarding the flow and how you can map your designed diagrams into Rasa, you try to use one universal story/rule to make your structure more modular. You can find parts of the flow in your diagram that are being repeated on the other ones also and create your story/rule(s) out of them to be used in different flows. Rasa also supports checkpoint, which let you manage your stories in a more restrictive way.
For getting users' responses and acting accordingly, you need to deploy Rasa forms and action in your story/rule(s) for extracting those 'entities` you want to get from users and manipulate them.

AWS Step functions for Creating User Driven Workflows

As a part of the product development, We have to implement a workflow engine. Currently the workflow is simple one i.e , there could be multiple states for ex: 1,2,3,4,5. The user can select a combination of states for ex
Work flow 1: 1->2->3->4->5
Work flow 2: 1->4->5
Work flow 3: 5
The plan is to implement the states in the workflow using Lambdas, ECS Tasks, App Runner etc and the orchestration using Step Functions . Since the workflows are created by users , we are looking for a way to translate the user selection in to a step function state machine. We are discussing various approaches
Create a step function programmatically based on the user selection
Create a catch all work flow with a Choice , which would a state based on it is selected in the workflow
Implement a decider function based approach
We found some references in the following post: AWS Step Functions with dynamic steps
Any other recommendation would be really appreciated. Thanks in advance

How to customize the form of a work item type using code in Azure Devops?

Is it possible to customize a work item programmatically (through code) instead of using the UI (Process)? I want to add a button to create two specific work items, provided some conditions are fulfilled.
I tried to achieve the above requirement using UI. However, it doesn't seem to be possible.
For processes using the Inheritance model. API’s for everything you need to create and manage a process through code. This includes work item types, pages, groups, fields, states, rules, etc. Check Work Item Tracking Process APIs at the following site:
https://learn.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.0
For Hosted XML processes. API’s for checking to see if the process exists, importing, and exporting a Hosted XML process. Check Work Item Tracking Process Template APIs.
More details, you could refer to the following blog:
https://devblogs.microsoft.com/devops/announcing-new-rest-apis-for-process-customization/

Using "speechBiasingHints" with Dialogflow Webhook

First time posting, so feel free to give me feedback if I could improve something about this post... Now on to my question.
I am currently developing a Google Action, the Action will allow the user to define important events, such as Bob's Birthday or Fred's Graduation, and save data about said events. Later, the user will be able to ask for info about the event and get it returned back to them.
I am using the Dialogflow API with "Inline Editor" fulfillment to keep it as simple as possible for right now. The problem I am running into is this, the event has an entity type of #sys.any, so anything the user says is excepted as valid input. I would like some way to bias towards events I already have stored for the user however, so that they are more likely to find the event they are looking for.
I found another answer on here discussing speech biasing (What is meant by speech bias and how to use speechBiasHints in google-actions appResponse) which defined speech biasing as the ability to"influence the speech to text recognition," which is exactly what I believe I want. While that answer provided sample code, it was for the Actions SDK, not the Dialogflow SDK, which I am using.
Can anyone provide an example of how to fill the "speechBiasingHints" section of the ExpectedInput response of the Conversation Webhook using the DialogFlow Webkook?
Note: This is for a student project, and I'm new to developing Google Actions and still very much learning about everything that is capable with Google Actions. Any feedback or suggestions are very welcome.
The question you link to does quite a few things differently than the approach you're taking. The Action SDK provides more low-level control, but doesn't have much Natural Language Processing (NLP) capabilities, which Dialogflow provides.
Dialogflow handles biasing a little differently through the use of Entities, so you don't need to control the speech biasing directly, Dialogflow can handle that for you, to some extent.
Since each user may have a different event name, you'll probably want to use a User Entity, which is an entity you define and then populate on a user-by-user basis through Dialogflow's API. In your sample phrases, you can then use this entity name instead of #sys:any, or create another set of phrases that use this entity in addition.

Alfresco REST Api add Task

I am developing a java web application to manage Alfresco users and tasks (create and assign tasks to users ..) using rest api , i couldn't add tasks with POST method as shown in this picture :
Can anyone please suggest how to handle this.
Thanks.
You're not calling the right method, this url only accepts GET.
You can use all theses methods : https://api-explorer.alfresco.com/api-explorer/#/tasks, but I don't see one permitting to create a task.
I think this is because creating a task is not logic.
Maybe what you want to do is to create a process : https://api-explorer.alfresco.com/api-explorer/#!/processes/createProcess
If you don't find what you need, you still have the option to create your own webscript https://docs.alfresco.com/5.2/tasks/ws-tutorials.html.
As #Akah said, it's not the right service, also, you can find all deployed services in your Alfresco instance with there descriptions on http://localhost:8081/alfresco/service/index/all