Insert Record

I'm currently exploring all the possible ways to insert record in a record type (for e.g. StudentDetails is my Record Type) but I have String fields as process variables.

one way I know is (i) Gave Input Variable of StudentDetails type and in Script task Output  mapped the values from process variables  and used write records.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to Venkat Avuluri

    It really depends.

    When I get input from the user, I try to populate my record data directly in the interface. This avoids having two locations where that record is manipulated.

    Then, I try to avoid separate script tasks, but not at all cost, as hiding complexity in a process model just increases the maintenance effort in the long run.

    Next, logic directly in process or a separate expression? Just for compiling a simple record from a few PVs, I would do that in the write records node. But doing anything slightly more complex, create a separate expression.

    I think relevant activities or complex logic need to visible, expressive and clear.