process4.biz 7.x Documentation

features description for Process4.biz

Mod_008: Creating link types for classes Input-Output & Activity

Problem

You have the classes Input-Output and Activity. You want to link objects of these classes as following:

Input is linked via link type ”is input to” with Activity
Activity is linked via link type ”gets as input” with Input  
Output is linked via link type ”output from” with Activity 
Activity is linked via link type ”delivers as output” with Output.

Solution

  1. First check your RACI template. Columns should be called “Input” and “Output” correspondingly.

328356

  1. Create two new link types.

328285

328286

  1. Class Input-Output should have the DB name “Input-Output”.

328287

  1. Create the following link type rules for the class Input-Output.

328288

  1. Create following link technology rules for the class Input-Output.

328289

  1. For link types “Is input to” and “Gets as Input” write the following formula in the field Condition.
Set shps=Page.Document.Pages(2).Shapes
Set shape_io=LinkedShape("InputOutput")
Set lane_input=shps.ItemU("Input")
input_x=lane_input.Cells("PinX")
input_w=lane_input.Cells("Width")
input_left=input_x-input_w/2
input_right=input_x+input_w/2
io_x=shape_io.Cells("PinX")
io_w=shape_io.Cells("Width")
io_left=io_x-io_w/2
io_right=io_x+io_w/2
Result=input_left<io_left And io_right<input_right

328290

  1. For the link types “is output from” and “Delivers as output” write the following formula in the field Condition.
Set shps=Page.Document.Pages(2).Shapes
Set shape_io=LinkedShape("InputOutput")
Set lane_output=shps.ItemU("Output")
output_x=lane_output.Cells("PinX")
output_w=lane_output.Cells("Width")
output_left=output_x-output_w/2
output_right=output_x+output_w/2
io_x=shape_io.Cells("PinX")
io_w=shape_io.Cells("Width")
io_left=io_x-io_w/2
io_right=io_x+io_w/2
Result=output_left<io_left And io_right<output_right

328355

Links should work properly now.

328357

328358

328359