starting a particular instance

Hi All,

Can i start a particular node and particular process instance from any external click (i.e from interface ) ?? 

 

Thanks,

Bhargavi 

  Discussion posts and replies are publicly visible

  • +1
    A Score Level 2
    in reply to bhargavip0001

    Hi Bhargavi,

    You have a process model and some of the instances are running. Now you want to use send message to trigger only particular instances of that process model.

    I believe when you are triggering the specific Instances means, at run time only you need to get the Destination Process instances id's and trigger the further Execution of those Process instances with Send Message event.

    In the above scenario you are picking up the selected Process instance Id's based on a condition. Now have that condition present in a DB table.

    Now periodically run a process with the help of timer event, pull the matching rows from the DB where your condition satisfies:

    If rows are not present then you can end the process here.

    If rows are coming up, then you design the same work flow that is done in the receive message event PM.

    Once you start the work flow Make sure the existing row/ Matching should be updated to inactive so that we can avoid re triggering of the instances.

  • Hi , i can do in both the ways where i can start particular instance using send and receive messages with instance id, and other way what you told but which would be better way ?
  • Hi Bhargavi,

    I would need to understand your process to suggest what is better.

    Option 1: If its okay, split the Main Process Model, put the nodes that need to be started in a separate sub process and call that process using a!start process, on interface . Refer the community.appian.com/.../creating-flexible-processes as suggested by Robert to understand the design.

    Option 2: If you need the main process to be active for the whole time until all these are done, use Set PV method, you can also use IFM Manager to set the PV, instead of Set/Get PV, to update the process variable.

    Avoid using Send/Receive Messages, when you have alternatives. Hope this helps.
  • Starting particular node can be achieved by using the send message or task link.
    Sending a message requires a link to the process model
    Task link requires any active task to proceed.
    To practice this you can make use of process management smart services and task services in the process model
    For any other process node read its usage and available features. So that you can have a better idea to control them according to your requrements.

    docs.appian.com/.../Smart_Services.html