Open topic with navigation

TIBCO iProcess® Engine 11.10.0

# SW_GRAFTCOUNT

The `SW_GRAFTCOUNT` procedure specifies how many items are to be grafted to the specified instance of the graft step.

## Syntax

    SW_GRAFTCOUNT (
    proc_namein varchar2(8),proc_maj_verin number(5),proc_min_verin number(5),case_numberin integer,graft_step_namein varchar2(8),graft_idin varchar2,graft_countin integer)

where:

| • | `proc_name` is the name of the parent procedure that you want to graft a sub-procedure to.

| • | `proc_maj_ver` is either the major version number of the `proc_name` procedure, or `-1`. See the notes .

| • | `proc_min_ver` is either the minor version number of the `proc_name` procedure, or `-1`. See the notes .

| • | `case_number` is the case number of the main procedure that the sub-procedure is to be grafted to.

| • | `graft_step_name` is the name of the graft step in the `proc_name` procedure that the sub-procedure is to be grafted to.

| • | `graft_id` is a unique identifier for this instance of the `graft_step_name` graft step.

| • | `graft_count` is the number of items that are to be grafted to the `graft_step_name` graft step.

## Notes

Instead of using the specific major or minor version number or both of the procedure, you can specify both the `proc_maj_ver` and `proc_min_ver` parameters as `-1`. If you do this, iProcess will use the version number of the procedure that the case was originally started with or, that it has subsequently been migrated to (if a subsequent version has been released while the case is still in progress).

Note | If you specify one version number parameter as `-1`, you must specify the other one as `-1` as well.

For more information about graft steps and how to use them, see TIBCO iProcess Modeler Integration Techniques.

## Example

See SW_GRAFT.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO iProcess® Engine